PHP Class Message_Board_Admin_User_Edit

Datei anzeigen Open project: justintadlock/message-board Class Usage Examples

Public Methods

Method Description
__construct ( ) : void Sets up needed actions/filters for the admin to initialize.
admin_notices ( ) : void Displays admin notices for the edit forum screen.
get_instance ( ) : object Returns the instance.
load_user_edit ( ) : void Adds actions/filters.
print_styles ( ) : void Enqueue the plugin admin CSS.
profile_fields ( object $user ) : void Filter on the request hook to change what posts are loaded.
role_update ( integer $user_id ) : void Callback function for handling forum role changes. Note that we needed to execute this function on a different hook, profile_update. Using the normal hooks on the edit user screen won't work because WP will wipe out the role.

Method Details

__construct() public method

Sets up needed actions/filters for the admin to initialize.
Since: 1.0.0
public __construct ( ) : void
return void

admin_notices() public method

Displays admin notices for the edit forum screen.
Since: 1.0.0
public admin_notices ( ) : void
return void

get_instance() public static method

Returns the instance.
Since: 1.0.0
public static get_instance ( ) : object
return object

load_user_edit() public method

Adds actions/filters.
Since: 1.0.0
public load_user_edit ( ) : void
return void

print_styles() public method

Enqueue the plugin admin CSS.
Since: 1.0.0
public print_styles ( ) : void
return void

profile_fields() public method

Filter on the request hook to change what posts are loaded.
Since: 1.0.0
public profile_fields ( object $user ) : void
$user object
return void

role_update() public method

Callback function for handling forum role changes. Note that we needed to execute this function on a different hook, profile_update. Using the normal hooks on the edit user screen won't work because WP will wipe out the role.
Since: 1.0.0
public role_update ( integer $user_id ) : void
$user_id integer
return void