Свойство | Type | Description | |
---|---|---|---|
$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. |
Méthode | Description | |
---|---|---|
__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. |
Méthode | Description | |
---|---|---|
__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 | ||
Résultat | void |
public activation ( ) : void | ||
Résultat | void |
public enqueue_scripts ( ) : void | ||
Résultat | void |
public static get_instance ( ) : object | ||
Résultat | object |
public string $dir_path | ||
Résultat | string |
public string $dir_uri | ||
Résultat | string |
public object $forum_query | ||
Résultat | object |
public array $forum_types | ||
Résultat | array |
public object $reply_query | ||
Résultat | object |
public array $roles | ||
Résultat | array |
public object $search_query | ||
Résultat | object |
public object $subforum_query | ||
Résultat | object |
public object $topic_query | ||
Résultat | object |
public array $topic_types | ||
Résultat | array |