Свойство | Тип | Описание | |
---|---|---|---|
$assetsURL | string | The Plugin URL more assets/. This property is very useful for read style sheet and Javascript file in the 'assets' folder. | |
$classesPath | string | The Filesystem plugin path more classes/ | |
$cssURL | string | The Plugin URL more assets/css/ | |
$databasePath | string | The Filesystem plugin path more database/ | |
$folderName | string | The plugin folder, Eg. wpx-smartshop/ | |
$imagesURL | string | The Plugin URL more assets/css/images/ | |
$javascriptURL | string | The Plugin URL more assets/js/ | |
$path | string | Filesystem plugin path | |
$pluginBasename | string | The Plugin folder and main file, Eg. wpx-smartshop/main.php This is used as unique code id. | |
$protocol | string | The Protocol http:// or https:// | |
$slug | string | The plugin slug build with WordPress sanitize_title() | |
$url | string | The Plugin URL | |
$urlAjax | string | The Default WordPress admin Ajax URL gateway | |
$url_images | string | The Plugin URL more assets/css/images/ | |
$url_javascript | string | The Plugin URL more assets/js/ |
Метод | Описание | |
---|---|---|
__construct ( string $file = null ) : WPDKWordPressPlugin | Create a WPDKWordPressPlugin instance | |
activation ( ) | Called when a plugin is activate; register_activation_hook() | |
admin ( ) | See _init() | |
admin_init ( ) | Called by action hook 'admin_init' | |
ajax ( ) | This method is to override and it is called when an Ajax request is performed. | |
autoloadEnvironment ( string $sClassName ) | This function performs runtime autoloading of a class specifically related to this instance; this autoloading is based on previous class registering that has to be executed before. | |
currentURL ( ) : string | Return the current complete URL with protocol (http or https), server name, port and URI | |
deactivation ( ) | Called when a plugin is deactivate; register_deactivation_hook() | |
preferences ( ) | Called after load_plugin_textdomain() in _init | |
protocol ( ) : string | Return the current web site protocol. The protocol property is set too. | |
registerAutoloadClass ( string | array $sLoadingPath, string $mClassName = '' ) | This function records a WPX plugin class into autoloading register, joined with its loading path. | |
reloadTextDomain ( ) | Reload the text domain for multilingual. This method is useful when the loading procedure for the text domain (which occurs in plugins_loaded()) is not complete for some reason. | |
theme ( ) | See _init()`` | |
urlAjax ( ) : string | Returns the standard URL used by WordPress Ajax request. | |
widgets ( ) | Fires after all default WordPress widgets have been registered. |
public __construct ( string $file = null ) : WPDKWordPressPlugin | ||
$file | string | Usually you set it as `__FILE__`, which is the name of main file of plugin |
Результат | WPDKWordPressPlugin |
public activation ( ) |
public ajax ( ) |
public autoloadEnvironment ( string $sClassName ) | ||
$sClassName | string | - The class that has to be loaded right now |
public static currentURL ( ) : string | ||
Результат | string | The current complete URL |
public deactivation ( ) |
public reloadTextDomain ( ) |
public widgets ( ) |
public string $assetsURL | ||
Результат | string |
public string $classesPath | ||
Результат | string |
public string $databasePath | ||
Результат | string |
public string $folderName | ||
Результат | string |
public string $imagesURL | ||
Результат | string |
public string $javascriptURL | ||
Результат | string |
public string $pluginBasename | ||
Результат | string |
public string $protocol | ||
Результат | string |
public string $slug | ||
Результат | string |
public string $urlAjax | ||
Результат | string |
public string $url_images | ||
Результат | string |
public string $url_javascript | ||
Результат | string |