Method | Description | |
---|---|---|
__construct ( string $plugin_file_path ) | Constructor. Sets up the properties. | |
offsetExists ( string $name ) : boolean | Checks if a property with the given name exists. | |
offsetGet ( string $name ) : mixed | Returns the value of the property with the given name. | |
offsetSet ( string $name, mixed $value ) : void | Stores the given value with the given name. | |
offsetUnset ( string $name ) : void | Removes the property with the given name. | |
plugin_base_name ( ) : string | Returns the base name of the plugin. | |
plugin_dir_path ( ) : string | Returns the absolute path of the plugin root folder. | |
plugin_dir_url ( ) : string | Returns the URL of the plugin root folder. | |
plugin_file_path ( ) : string | Returns the absolute path of main plugin file. | |
plugin_name ( ) : string | Returns the plugin name as given in the plugin headers. | |
plugin_website ( ) : string | Returns the URL of the plugin website. | |
text_domain ( ) : string | Returns the plugin text domain. | |
text_domain_path ( ) : string | Returns the absolute path of the folder with the plugin translation files. | |
version ( ) : string | Returns the plugin version. |
public __construct ( string $plugin_file_path ) | ||
$plugin_file_path | string | Main plugin file path. |
public offsetExists ( string $name ) : boolean | ||
$name | string | The name of a property. |
return | boolean | Whether or not a property with the given name exists. |
public offsetUnset ( string $name ) : void | ||
$name | string | The name of a property. |
return | void |
public plugin_base_name ( ) : string | ||
return | string | The base name of the plugin. |
public plugin_dir_path ( ) : string | ||
return | string | The absolute path of the plugin root folder. |
public plugin_dir_url ( ) : string | ||
return | string | The URL of the plugin root folder. |
public plugin_file_path ( ) : string | ||
return | string | The absolute path of main plugin file. |
public plugin_name ( ) : string | ||
return | string | The plugin name. |
public plugin_website ( ) : string | ||
return | string | The URL of the plugin website |
public text_domain ( ) : string | ||
return | string | The plugin text domain. |
public text_domain_path ( ) : string | ||
return | string | The absolute path of the folder with the plugin translation files. |