PHP Class TitanFrameworkPlugin

Since: 1.0
Exibir arquivo Open project: gambitph/titan-framework Class Usage Examples

Public Methods

Method Description
__construct ( ) Constructor, add hooks
force_load_first ( array $plugins = null ) : array Forces our plugin to be loaded first. This is to ensure that plugins that use the framework have access to this class from almost anywhere
load_text_domain ( ) : void Load plugin translations
plugin_links ( array $plugin_meta, string $plugin_file ) : array Adds links to the docs and GitHub
trigger_option_creation ( ) : void Trigger the creation of the options

Method Details

__construct() public method

Constructor, add hooks
Since: 1.0
public __construct ( )

force_load_first() public method

Forces our plugin to be loaded first. This is to ensure that plugins that use the framework have access to this class from almost anywhere
See also: initially based on http://snippets.khromov.se/modify-wordpress-plugin-load-order/
Since: 1.0
public force_load_first ( array $plugins = null ) : array
$plugins array List of plugins loaded.
return array Modified list of plugins.

load_text_domain() public method

Load plugin translations
Since: 1.0
public load_text_domain ( ) : void
return void

trigger_option_creation() public method

Trigger the creation of the options
Since: 1.9
public trigger_option_creation ( ) : void
return void