Yoast\WP\SEO\Integrations\Front_End
Force_Rewrite_Title::register_hooks() public Yoast 1.0
Initializes the integration.
This is the place to register hooks and filters.
{} Это метод класса: Force_Rewrite_Title{}
Хуков нет.
Возвращает
null.
Использование
$Force_Rewrite_Title = new Force_Rewrite_Title(); $Force_Rewrite_Title->register_hooks();
Код Force_Rewrite_Title::register_hooks() Force Rewrite Title::register hooks Yoast 15.6.2
public function register_hooks() {
// When the option is disabled.
if ( ! $this->options->get( 'forcerewritetitle', false ) ) {
return;
}
// For WordPress versions below 4.4.
if ( \current_theme_supports( 'title-tag' ) ) {
return;
}
\add_action( 'template_redirect', [ $this, 'force_rewrite_output_buffer' ], 99999 );
\add_action( 'wp_footer', [ $this, 'flush_cache' ], -1 );
}