PHP Class TitanFrameworkPlugin

Since: 1.0
Afficher le fichier Open project: gambitph/titan-framework Class Usage Examples

Méthodes publiques

Méthode 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 méthode

Constructor, add hooks
Since: 1.0
public __construct ( )

force_load_first() public méthode

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.
Résultat array Modified list of plugins.

load_text_domain() public méthode

Load plugin translations
Since: 1.0
public load_text_domain ( ) : void
Résultat void

trigger_option_creation() public méthode

Trigger the creation of the options
Since: 1.9
public trigger_option_creation ( ) : void
Résultat void