Tribe__Admin__Notice__Plugin_Download::add_required_plugin( string $name, null $thickbox_url = null, bool $is_active = null, string $version = null, bool $addon = false, bool $has_pue_notice = false )

Add a required plugin to the notice


Parameters

$name

(string) (Required) Name of the required plugin

$thickbox_url

(null) (Optional) Download or purchase URL for plugin from within /wp-admin/ thickbox

Default value: null

$is_active

(bool) (Optional) Indicates if the plugin is installed and active or not

Default value: null

$version

(string) (Optional) version number of the required plugin

Default value: null

$addon

(bool) (Optional) Indicates if the plugin is an add-on for The Events Calendar or Event Tickets

Default value: false

$has_pue_notice

(bool) (Optional) Indicates that we need to change the messaging due to expired key.

Default value: false


Top ↑

Source

File: src/Tribe/Admin/Notice/Plugin_Download.php

	public function add_required_plugin( $name, $thickbox_url = null, $is_active = null, $version = null, $addon = false ) {
		$this->plugins_required[ $name ] = array(
			'name'         => $name,
			'thickbox_url' => $thickbox_url,
			'is_active'    => $is_active,
			'version'      => $version,
			'addon'        => $addon,
		);
	}

Top ↑

Changelog

Changelog
Version Description
4.9.17 Appended "+" to all version numbers to indicate "or any later version".
4.9.12 Add $has_pue_notice param
4.9 Added $version and $addon parameters.
4.8.3 Introduced.