Yoast\WP\SEO\Promotions\Application

Promotion_Manager_Interface{}Yoast 1.0

Interface for the promotion manager.

Хуков нет.

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

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

Методы

  1. public get_promotions_list()
  2. public is( string $promotion_name )

Код Promotion_Manager_Interface{} Yoast 24.3

interface Promotion_Manager_Interface {

	/**
	 * Whether the promotion is effective.
	 *
	 * @param string $promotion_name The name of the promotion.
	 *
	 * @return bool Whether the promotion is effective.
	 */
	public function is( string $promotion_name ): bool;

	/**
	 * Get the list of promotions.
	 *
	 * @return array The list of promotions.
	 */
	public function get_promotions_list(): array;
}