프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$db_version | integer | Current database version. | |
$deleted_post | object | null | Used for temporarily saving a deleted post object. | |
$dir_path | string | Directory path to the plugin folder. | |
$dir_uri | string | Directory URI to the plugin folder. | |
$forum_query | object | Forum query. Is assigned a WP_Query object. On forum archive/single views, this is the main $wp_query object. | |
$forum_types | array | Forum types (e.g., normal, category). | |
$reply_query | object | Reply query. Is assigned a WP_Query object. This is mainly useful on single topic views, where it is used to display the replies to the current topic. | |
$role_query | object | null | Role query. This holds the results of mb_get_dynamic_roles() and is used on the role archive page. | |
$roles | array | Forum roles (e.g., keymaster, moderator, participant, spectator, banned). | |
$search_query | object | Search query. Is assigned a WP_Query object. This is the $wp_query object when viewing a forum search results page. | |
$subforum_query | object | Sub-forum query. Is assigned a WP_Query object. This is only useful when getting the sub-forums of a particular forum. | |
$topic_query | object | Topic query. Is assigned a WP_Query object. On topic single/archive views, this is the main $wp_query object. | |
$topic_types | array | Topic types (e.g., normal, super, sticky). | |
$user_query | object | null | User query. This holds the results of get_users() and is particularly useful for the user archive page. | |
$version | string | Plugin version number. |
메소드 | 설명 | |
---|---|---|
__call ( $method = '', $args = [] ) : void | Magic method to prevent a fatal error when calling a method that doesn't exist. | |
__clone ( ) : void | Magic method to keep the object from being cloned. | |
__toString ( ) : void | Magic method to output a string if trying to use the object as a string. | |
__wakeup ( ) : void | Magic method to keep the object from being unserialized. | |
activation ( ) : void | Method that runs only when the plugin is activated. | |
enqueue_scripts ( ) : void | Loads the front end scripts and styles. No styles are loaded if the theme supports the plugin. | |
get_instance ( ) : object | Returns the instance. | |
i18n ( ) : void | Loads the translation files. |
메소드 | 설명 | |
---|---|---|
__construct ( ) : void | Constructor method. | |
includes ( ) : void | Loads include and admin files for the plugin. | |
setup ( ) : void | Initial plugin setup. | |
setup_actions ( ) : void | Sets up initial actions. |
public __toString ( ) : void | ||
리턴 | void |
public activation ( ) : void | ||
리턴 | void |
public enqueue_scripts ( ) : void | ||
리턴 | void |
public object $forum_query | ||
리턴 | object |
public object $reply_query | ||
리턴 | object |
public array $roles | ||
리턴 | array |
public object $search_query | ||
리턴 | object |
public object $subforum_query | ||
리턴 | object |
public object $topic_query | ||
리턴 | object |
public array $topic_types | ||
리턴 | array |