Yoast\WP\SEO\Plans\Domain\Add_Ons
Add_On_Interface{}
This interface describes an add-on for a plan.
Хуков нет.
Использование
$Add_On_Interface = new Add_On_Interface(); // use class methods
Методы
- public get_ctb_action()
- public get_ctb_id()
- public get_id()
- public has_license()
- public is_active()
Код Add_On_Interface{} 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;
}