Property | 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. |
Method | 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. |
Method | 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 | ||
return | void |
public activation ( ) : void | ||
return | void |
public enqueue_scripts ( ) : void | ||
return | void |
public static get_instance ( ) : object | ||
return | object |
public string $dir_path | ||
return | string |
public string $dir_uri | ||
return | string |
public object $forum_query | ||
return | object |
public array $forum_types | ||
return | array |
public object $reply_query | ||
return | object |
public array $roles | ||
return | array |
public object $search_query | ||
return | object |
public object $subforum_query | ||
return | object |
public object $topic_query | ||
return | object |
public array $topic_types | ||
return | array |