get_version() get_version(): string Gets the plugin version number (e.g. 1.3.2). Returnsstring —The version number.
get_file() get_file(): string Gets the full path to the main plugin file. Returnsstring —The main plugin file.
get_basename() get_basename(): string Get the 'basename' for the plugin (e.g. my-plugin/my-plugin.php). Returnsstring —The plugin basename.
get_slug() get_slug(): string Get the slug for this plugin (e.g. my-plugin). Returnsstring —The plugin slug.
get_dir_path() get_dir_path(): string Get the full path to the plugin folder, with trailing slash (e.g. /wp-content/plugins/my-plugin/). Returnsstring —The plugin directory path.
get_dir_url() get_dir_url(): string Get the URL to the plugin folder, with trailing slash. Returnsstring —(URL)
is_woocommerce() is_woocommerce(): boolean Is this plugin a WooCommerce extension? Returnsboolean —true if it's a WooCommerce extension.
is_edd() is_edd(): boolean Is this plugin an Easy Digital Downloads extension? Returnsboolean —true if it's an EDD extension.
get_settings_page_url() get_settings_page_url(): string Get the settings page URL in the WordPress admin. Returnsstring —(URL)
get_documentation_url() get_documentation_url(): string Get the documentation URL for this plugin. Returnsstring —(URL)
get_support_url() get_support_url(): string Get the support URL for this plugin. Returnsstring —(URL)
get_license() get_license(): \Barn2\PTP_Lib\Plugin\Barn2\PTP_Lib\Plugin\License\License Get the plugin license object. Returns\Barn2\PTP_Lib\Plugin\Barn2\PTP_Lib\Plugin\License\License
has_valid_license() has_valid_license(): boolean Does this plugin have a valid license? Returnsboolean —true if valid.
get_license_setting() get_license_setting(): \Barn2\PTP_Lib\Plugin\Barn2\PTP_Lib\Plugin\License\Admin\License_Setting Get the license setting for the plugin. Returns\Barn2\PTP_Lib\Plugin\Barn2\PTP_Lib\Plugin\License\Admin\License_Setting
get_license_page_url() get_license_page_url(): string Get the URL of the page where license settings are managed. Returnsstring —The license setting URL
get_legacy_db_prefix() get_legacy_db_prefix(): string Get the legacy database prefix for the old license system. Returnsstring —The prefix or an empty string if not applicable