PHP Класс Message_Board_Admin

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

Открытые свойства

Свойство Тип Описание
$forum_type string Forum post type name.
$reply_type string Reply post type name.
$topic_type string Topic post type name.

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

Метод Описание
__construct ( ) : void Sets up needed actions/filters for the admin to initialize.
admin_body_class ( string $class ) : string Adds a custom admin body class.
admin_menu ( ) : void Adds admin menu items needed by the plugin. Rather than having multiple top-level menu items like some plugins, which shall remain unnamed, we'll consolidate everything into a single item. Yay for no clutter!
admin_notices ( ) : void Displays an admin notice if the current theme does not support the Message Board plugin.
get_instance ( ) : object Returns the instance.
nav_menu_meta_box_object ( object $object ) : object Makes sure the correct post status is used when loading forums on the nav menus screen. By default, WordPress will only load them if they have the "publish" post status.
parent_file ( string $parent_file ) : string Corrects the parent file for post type screens.
register_scripts ( ) : object Registers the admin scripts and styles.
views_edit ( array $views ) : array Puts the post status links in the a better order. By default, WP will list these in the order they're registered. Instead, we're going to put them in order from public, private, protected, and other.

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

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

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

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

Adds a custom admin body class.
С версии: 1.0.0
public admin_body_class ( string $class ) : string
$class string
Результат string

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

Adds admin menu items needed by the plugin. Rather than having multiple top-level menu items like some plugins, which shall remain unnamed, we'll consolidate everything into a single item. Yay for no clutter!
С версии: 1.0.0
public admin_menu ( ) : void
Результат void

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

Displays an admin notice if the current theme does not support the Message Board plugin.
С версии: 1.0.0
public admin_notices ( ) : void
Результат void

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

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

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

Makes sure the correct post status is used when loading forums on the nav menus screen. By default, WordPress will only load them if they have the "publish" post status.
С версии: 1.0.0
public nav_menu_meta_box_object ( object $object ) : object
$object object
Результат object

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

Corrects the parent file for post type screens.
С версии: 1.0.0
public parent_file ( string $parent_file ) : string
$parent_file string
Результат string

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

Registers the admin scripts and styles.
С версии: 1.0.0
public register_scripts ( ) : object
Результат object

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

Puts the post status links in the a better order. By default, WP will list these in the order they're registered. Instead, we're going to put them in order from public, private, protected, and other.
С версии: 1.0.0
public views_edit ( array $views ) : array
$views array
Результат array

Описание свойств

$forum_type публичное свойство

Forum post type name.
С версии: 1.0.0
public string $forum_type
Результат string

$reply_type публичное свойство

Reply post type name.
С версии: 1.0.0
public string $reply_type
Результат string

$topic_type публичное свойство

Topic post type name.
С версии: 1.0.0
public string $topic_type
Результат string