PHP Класс Message_Board_Admin_User_Edit

Автор: Justin Tadlock ([email protected])
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

Sets up needed actions/filters for the admin to initialize.
С версии: 1.0.0
public __construct ( ) : void
Результат void

admin_notices() публичный Метод

Displays admin notices for the edit forum screen.
С версии: 1.0.0
public admin_notices ( ) : void
Результат void

get_instance() публичный статический Метод

Returns the instance.
С версии: 1.0.0
public static get_instance ( ) : object
Результат object

load_user_edit() публичный Метод

Adds actions/filters.
С версии: 1.0.0
public load_user_edit ( ) : void
Результат void

print_styles() публичный Метод

Enqueue the plugin admin CSS.
С версии: 1.0.0
public print_styles ( ) : void
Результат void

profile_fields() публичный Метод

Filter on the request hook to change what posts are loaded.
С версии: 1.0.0
public profile_fields ( object $user ) : void
$user object
Результат void

role_update() публичный Метод

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.
С версии: 1.0.0
public role_update ( integer $user_id ) : void
$user_id integer
Результат void