PHP Class Twitter\WordPress\PluginLoader

Since: 1.0.0
Show file Open project: twitter/wordpress Class Usage Examples

Public Methods

Method Description
adminInit ( ) : void Hook into actions and filters specific to a WordPress administrative view
compatibility ( ) : void Compatibility wrappers for popular plugins
getPluginDirectory ( ) : string Full path to the directory containing the Twitter for WordPress plugin files
getPluginMainFile ( ) : string Full path to the main file of the Twitter for WordPress plugin
init ( ) : void Bind to hooks and filters
loadTranslatedText ( ) : void Load translated strings for the current locale, if a translation exists
publicInit ( ) : void Register actions and filters shown in a non-admin context
registerScripts ( ) : void Register JavaScript during the enqueue scripts action
registerShortcodeHandlers ( ) : void Register shortcodes handlers and callbacks
widgetsInit ( ) : void Register widgets
wpHead ( ) : void Attach actions to the wp_head action

Method Details

adminInit() public static method

Hook into actions and filters specific to a WordPress administrative view
Since: 1.0.0
public static adminInit ( ) : void
return void

compatibility() public static method

Compatibility wrappers for popular plugins
Since: 1.0.0
public static compatibility ( ) : void
return void

getPluginDirectory() public static method

Full path to the directory containing the Twitter for WordPress plugin files
Since: 1.0.0
public static getPluginDirectory ( ) : string
return string full directory path

getPluginMainFile() public static method

Full path to the main file of the Twitter for WordPress plugin
Since: 1.0.0
public static getPluginMainFile ( ) : string
return string full path to file

init() public static method

Bind to hooks and filters
Since: 1.0.0
public static init ( ) : void
return void

loadTranslatedText() public static method

Load translated strings for the current locale, if a translation exists
Since: 1.0.0
public static loadTranslatedText ( ) : void
return void

publicInit() public static method

Register actions and filters shown in a non-admin context
Since: 1.0.0
public static publicInit ( ) : void
return void

registerScripts() public static method

Register JavaScript during the enqueue scripts action
Since: 1.0.0
public static registerScripts ( ) : void
return void

registerShortcodeHandlers() public static method

Register shortcodes handlers and callbacks
Since: 1.0.0
public static registerShortcodeHandlers ( ) : void
return void

widgetsInit() public static method

Register widgets
Since: 1.0.0
public static widgetsInit ( ) : void
return void

wpHead() public static method

Attach actions to the wp_head action
Since: 1.0.0
public static wpHead ( ) : void
return void