WPDK
1.5.0
WordPress Development Kit
|
Public Member Functions | |
__construct ($file=null) | |
Construct. More... | |
active () | |
deactive () | |
uninstall () | |
readMetadata ($aWPXHeaders) | |
Data Fields | |
$active = false | |
Active. More... | |
$author = '' | |
Author. More... | |
$authorName = '' | |
Author. More... | |
$authorURI = '' | |
Author URI. More... | |
$description = '' | |
Description. More... | |
$file = '' | |
Path file. More... | |
$icon = '' | |
Icon. More... | |
$id = '' | |
ID. More... | |
$name = '' | |
Plugin name. More... | |
$network = '' | |
Network. More... | |
$pluginURI = '' | |
Plugin URI. More... | |
$textDomain = '' | |
Plugin Text Domain. More... | |
$textDomainPath = '' | |
Text domain Plugin url. More... | |
$title = '' | |
Title. More... | |
$version = '' | |
Version. More... | |
Wrap for generic plugin object. This class is used to manage any plugin installed (enabled or disabled). This class is very different from WPDKWordPressPlugin because can describe any WordPress Plugin. Also, it is the logical model of any plugin.
Definition at line 592 of file wpdk-wordpress-plugin.php.
__construct | ( | $file = null | ) |
Construct.
Create an instance of WPDKPlugin class
null | $file | Optional. Usually constant FILE |
Definition at line 740 of file wpdk-wordpress-plugin.php.
active | ( | ) |
Definition at line 771 of file wpdk-wordpress-plugin.php.
deactive | ( | ) |
Definition at line 774 of file wpdk-wordpress-plugin.php.
readMetadata | ( | $aWPXHeaders | ) |
Retrieve metadata from the main file of plugin.
Searches for metadata in the first 8kiB of a file, such as a plugin or theme. Each piece of metadata must be on its own line. Fields can not span multiple lines, the value will get cut at the end of the first line.
If the file data is not within that first 8kiB, then the author should correct their plugin file and move the data headers to the top.
array | $aWPXHeaders | List of metadata to get, in the format `array( 'Header Name' ==> '', ... )` |
Definition at line 797 of file wpdk-wordpress-plugin.php.
uninstall | ( | ) |
Definition at line 777 of file wpdk-wordpress-plugin.php.
bool $active = false |
string $author = '' |
Author.
The Author get from get_plugin_data()
, 'Author' parameter
Definition at line 610 of file wpdk-wordpress-plugin.php.
string $authorName = '' |
Author.
The Author name from get_plugin_data()
, 'AuthorName' parameter
Definition at line 619 of file wpdk-wordpress-plugin.php.
string $authorURI = '' |
Author URI.
The Author URI from get_plugin_data()
, 'AuthorURI' parameter
Definition at line 628 of file wpdk-wordpress-plugin.php.
string $description = '' |
string $file = '' |
string $icon = '' |
string $id = '' |
ID.
This is the ID of plugin. This property is 'folder/main file.php'
Definition at line 666 of file wpdk-wordpress-plugin.php.
string $name = '' |
string $network = '' |
Network.
The Network activation get from get_plugin_data()
, 'Network' parameter
Definition at line 684 of file wpdk-wordpress-plugin.php.
string $pluginURI = '' |
string $textDomain = '' |
Plugin Text Domain.
The plugin text domain get from get_plugin_data()
, 'Text Domain' parameter
Definition at line 702 of file wpdk-wordpress-plugin.php.
string $textDomainPath = '' |
Text domain Plugin url.
The complete Text domain Plugin url get from get_plugin_data()
, 'Domain Path' parameter
Definition at line 711 of file wpdk-wordpress-plugin.php.
string $title = '' |
Title.
The plugin title. This is the same as name
Definition at line 720 of file wpdk-wordpress-plugin.php.
string $version = '' |