Yoast\WP\SEO\Abilities\Infrastructure\Global_Setting_Targets
Not_Found_Page_Target{}└─ Abstract_Global_Setting_Target
The 404 pages, which share one template.
Хуков нет.
Использование
$Not_Found_Page_Target = new Not_Found_Page_Target(); // use class methods
Методы
- public get_name()
- public is_shared()
Код Not_Found_Page_Target{} Not Found Page Target{} Yoast 28.9
class Not_Found_Page_Target extends Abstract_Global_Setting_Target {
/**
* The name of the target.
*
* @var string
*/
public const NAME = 'not_found_page';
/**
* Returns the name of the target.
*
* @return string The name.
*/
public function get_name(): string {
return self::NAME;
}
/**
* Returns that the 404 pages share one template.
*
* @return bool Whether the template is shared.
*/
public function is_shared(): bool {
return true;
}
}