__construct() public method

Yoast_Product constructor.
public __construct ( string $api_url, string $item_name, string $slug, string $version, string $item_url = '', string $license_page_url = '#', string $text_domain = 'yoast', string $author = 'Yoast', string $file = '', integer $product_id )
$api_url string The URL of the shop running the EDD API.
$item_name string The item name in the EDD shop.
$slug string The slug of the plugin, for shiny updates this needs to be a valid HTML id.
$version string The version number of the item.
$item_url string The absolute url on which users can purchase a license.
$license_page_url string Absolute admin URL on which users can enter their license key.
$text_domain string The text domain used for translating strings.
$author string The item author.
$file string The relative file path to the plugin.
$product_id integer The ID of the product in the backend system.
 /**
  * Construct the real Product class with our fake data
  */
 public function __construct()
 {
     parent::__construct(get_site_url(), 'test-product', 'slug-test-product', '1.0.0');
 }
 public function __construct()
 {
     parent::__construct('https://yoast.com', 'WooCommerce Yoast SEO', plugin_basename(Yoast_WooCommerce_SEO::get_plugin_file()), Yoast_WooCommerce_SEO::VERSION, 'https://yoast.com/wordpress/plugins/yoast-woocommerce-seo/', 'admin.php?page=wpseo_licenses#top#licenses', 'yoast-woo-seo', 'Yoast');
 }
示例#3
0
 public function __construct()
 {
     parent::__construct('https://yoast.com/edd-sl-api', 'Local SEO for WordPress', plugin_basename(WPSEO_LOCAL_FILE), WPSEO_LOCAL_VERSION, 'https://yoast.com/wordpress/plugins/local-seo/', 'admin.php?page=wpseo_licenses#top#licenses', 'yoast-local-seo', 'Yoast');
 }
示例#4
0
 public function __construct()
 {
     parent::__construct('https://yoast.com/edd-sl-api', 'News SEO', plugin_basename(WPSEO_News::get_file()), WPSEO_News::VERSION, 'https://yoast.com/wordpress/plugins/news-seo/', 'admin.php?page=wpseo_licenses#top#licenses', 'wordpress-seo-news', 'Yoast');
 }
示例#5
0
 public function __construct()
 {
     parent::__construct('https://yoast.com', 'Sample Product', 'sample-product', '1.0', 'https://yoast.com/wordpress/plugins/sample-product/', 'admin.php?page=sample-product', 'sample-product', 'Yoast');
 }
示例#6
0
 /**
  * Set up the WPSEO_Video product
  */
 public function __construct()
 {
     parent::__construct('https://yoast.com/edd-sl-api', 'Video SEO for WordPress', plugin_basename(WPSEO_Video_Sitemap::get_plugin_file()), WPSEO_VIDEO_VERSION, 'https://yoast.com/wordpress/plugins/video-seo/', 'admin.php?page=wpseo_licenses#top#licenses', 'yoast-video-seo', 'Yoast');
 }
 public function __construct()
 {
     parent::__construct(SP_Constants::EDD_STORE_URL, SP_Constants::EDD_PLUGIN_NAME, plugin_basename(Post_Connector::get_plugin_file()), SP_Constants::PLUGIN_VERSION_NAME, 'https://www.post-connector.com/', 'admin.php?page=post_connector_license', 'post-connector', SP_Constants::PLUGIN_AUTHOR);
 }
 /**
  * Constructor of the class
  */
 public function __construct()
 {
     parent::__construct('https://yoast.com', 'Google Analytics by Yoast Premium', plugin_basename(GAWP_FILE), GA_YOAST_PREMIUM_VERSION, 'https://yoast.com/wordpress/plugins/google-analytics/', 'admin.php?page=yst_ga_extensions#top#licenses', 'yoast-google-analytics-premium', 'Yoast');
     $this->setup_license_manager();
 }
 public function __construct()
 {
     parent::__construct(trailingslashit(WPSEO_Premium::EDD_STORE_URL) . 'edd-sl-api', WPSEO_Premium::EDD_PLUGIN_NAME, plugin_basename(WPSEO_FILE), WPSEO_Premium::PLUGIN_VERSION_NAME, 'https://yoast.com/wordpress/plugins/seo-premium/', 'admin.php?page=wpseo_licenses#top#licenses', 'wordpress-seo', WPSEO_Premium::PLUGIN_AUTHOR);
 }