Tribe__PUE__Checker::__construct( string $pue_update_url, string $slug = '', array $options = array(), string $plugin_file = '' )

Class constructor.


Parameters

$pue_update_url

(string) (Required) Deprecated. The URL of the plugin's metadata file.

$slug

(string) (Optional) The plugin's 'slug'.

Default value: ''

$options

(array) (Optional) Contains any options that need to be set in the class initialization for construct.

  • 'check_period'
    (integer) How often to check for updates (in hours). Defaults to checking every 12 hours. Set to 0 to disable automatic update checks.
  • 'pue_option_name'
    (string) Where to store book-keeping info about update checks. Defaults to 'external_updates-$slug'.
  • 'apikey'
    (string) Used to authorize download updates from developer server
  • 'context'
    (string) Defaults to 'component' which is expected for plugins (or themes). If set to 'service' it will not hook into WP update checks.
  • 'plugin_name'
    (string) The plugin name, defaults to the name in the plugin file itself.

Default value: array()

$plugin_file

(string) (Optional) fully qualified path to the main plugin file.

Default value: ''


Top ↑

Source

File: src/Tribe/PUE/Checker.php

		public function __construct( $pue_update_url, $slug = '', $options = array(), $plugin_file = '' ) {
			$this->set_slug( $slug );
			$this->set_plugin_file( $plugin_file );
			$this->set_options( $options );
			$this->hooks();
		}