c_ws_plugin__s2member_users_list
public class c_ws_plugin__s2member_users_list
3.5
( 5 Methods ) Method Summary | |
---|---|
public static array | users_list_cols(bool $cols, array $columns) Adds columns to the list of Users. |
public static str | users_list_display_cols(str $val, str $col, int|str $user_id) Displays column data in the row of details. |
public static inner | users_list_edit_cols(obj $user) Adds Custom Fields to the admin Profile editing page. |
public static null | users_list_query(obj $query) Modifies the search query. |
public static inner | users_list_update_cols(int|str $user_id) Saves Custom Fields after an admin updates Profile. |
public static array users_list_cols(bool $cols, array $columns)
Adds columns to the list of Users.
3.5
add_filter ("manage_users_columns");
array $columns - Expects an array of columns to be passed through by the Filter.
array - Array of columns, merged with columns introduced by this routine.
public static str users_list_display_cols(str $val, str $col, int|str $user_id)
Displays column data in the row of details.
3.5
add_filter ("manage_users_custom_column");
str $val - A value for this column, passed through by the Filter.
str $col - The name of the column for which we might need to supply data for.
int|str $user_id - Expects a WordPress® User ID, passed through by the Filter.
str - A column value introduced by this routine, or existing value, or, if empty, a dash.
public static inner users_list_edit_cols(obj $user)
Adds Custom Fields to the admin Profile editing page.
3.5
add_action("edit_user_profile");
add_action("show_user_profile");
obj $user - Expects a WP_User
object passed in by the Action Hook.
inner - Return-value of inner routine.
public static null users_list_query(obj $query)
Modifies the search query.
Affects searches performed in the list of Users.
3.5
add_action("pre_user_query");
obj $query - Expects a WP_User_Query
object, by reference.
null - After possibly modifying the $query
object.
public static inner users_list_update_cols(int|str $user_id)
Saves Custom Fields after an admin updates Profile.
3.5
add_action("edit_user_profile_update");
add_action("personal_options_update");
int|str $user_id - Expects a numeric WordPress® User ID passed in by the Action Hook.
inner - Return-value of inner routine.
Users list.