PHP Class Message_Board_Admin_User_Edit

Afficher le fichier Open project: justintadlock/message-board Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

admin_notices() public méthode

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

get_instance() public static méthode

Returns the instance.
Since: 1.0.0
public static get_instance ( ) : object
Résultat object

load_user_edit() public méthode

Adds actions/filters.
Since: 1.0.0
public load_user_edit ( ) : void
Résultat void

print_styles() public méthode

Enqueue the plugin admin CSS.
Since: 1.0.0
public print_styles ( ) : void
Résultat void

profile_fields() public méthode

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

role_update() public méthode

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
Résultat void