Property | Type | Description | |
---|---|---|---|
$active | boolean | The Active flag | |
$activeForNetwork | boolean | TRUE whether the plugin is active for the entire network. | |
$author | string | The Author get from get_plugin_data(), 'Author' parameter | |
$authorName | string | The Author name from get_plugin_data(), 'AuthorName' parameter | |
$authorURI | string | The Author URI from get_plugin_data(), 'AuthorURI' parameter | |
$description | string | Long description of plugin | |
$file | string | Usually __FILE__ | |
$icon | string | The standard WPDK 64x64 icon path | |
$id | string | This is the ID of plugin. This property is 'folder/main file.php' | |
$name | string | Name of plugin | |
$network | string | Checks for "Network: true" in the plugin header to see if this should be activated only as a network wide plugin. The plugin would also work when Multisite is not enabled. | |
$pluginURI | string | Address of plugin repository | |
$textDomain | string | The plugin text domain get from get_plugin_data(), 'Text Domain' parameter | |
$textDomainPath | string | The complete Text domain Plugin url get from get_plugin_data(), 'Domain Path' parameter | |
$title | string | The plugin title. This is the same as name | |
$version | string | Plugin version |
Method | Description | |
---|---|---|
__construct ( null $file = null ) : WPDKPlugin | Create an instance of WPDKPlugin class |
public __construct ( null $file = null ) : WPDKPlugin | ||
$file | null | Optional. Usually constant __FILE__ |
return | WPDKPlugin |
public bool $activeForNetwork | ||
return | boolean |
public string $author | ||
return | string |
public string $authorName | ||
return | string |
public string $authorURI | ||
return | string |
public string $id | ||
return | string |
public string $network | ||
return | string |
public string $textDomain | ||
return | string |
public string $textDomainPath | ||
return | string |
public string $title | ||
return | string |