Yoast\WP\SEO\Plans\Domain\Add_Ons

Add_On_Interface{}interfaceYoast 1.0

This interface describes an add-on for a plan.

Хуков нет.

Использование

$Add_On_Interface = new Add_On_Interface();
// use class methods

Методы

  1. public get_ctb_action()
  2. public get_ctb_id()
  3. public get_id()
  4. public has_license()
  5. public is_active()

Код Add_On_Interface{} Yoast 27.7

interface Add_On_Interface {

	/**
	 * Returns the ID.
	 *
	 * @return string
	 */
	public function get_id(): string;

	/**
	 * Returns whether the add-on is installed and activated.
	 *
	 * @return bool
	 */
	public function is_active(): bool;

	/**
	 * Returns whether the add-on has an valid license.
	 *
	 * @return bool
	 */
	public function has_license(): bool;

	/**
	 * Returns the click-to-buy action.
	 *
	 * @return string
	 */
	public function get_ctb_action(): string;

	/**
	 * Returns the click-to-buy ID.
	 *
	 * @return string
	 */
	public function get_ctb_id(): string;
}