PHP 클래스 Message_Board_Admin

파일 보기 프로젝트 열기: justintadlock/message-board 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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