프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 |
메소드 | 설명 | |
---|---|---|
__construct ( null $file = null ) : WPDKPlugin | Create an instance of WPDKPlugin class |
public __construct ( null $file = null ) : WPDKPlugin | ||
$file | null | Optional. Usually constant __FILE__ |
리턴 | WPDKPlugin |
public bool $activeForNetwork | ||
리턴 | boolean |
public string $author | ||
리턴 | string |
public string $authorName | ||
리턴 | string |
public string $authorURI | ||
리턴 | string |
public string $id | ||
리턴 | string |
public string $network | ||
리턴 | string |
public string $textDomain | ||
리턴 | string |
public string $textDomainPath | ||
리턴 | string |