Yoast\WP\SEO\Integrations\Front_End
Backwards_Compatibility::register_hooks() public Yoast 1.0
Initializes the integration.
This is the place to register hooks and filters.
{} Это метод класса: Backwards_Compatibility{}
Хуки из метода
Возвращает
null.
Использование
$Backwards_Compatibility = new Backwards_Compatibility(); $Backwards_Compatibility->register_hooks();
Код Backwards_Compatibility::register_hooks() Backwards Compatibility::register hooks Yoast 15.6.2
public function register_hooks() {
if ( $this->options->get( 'opengraph' ) === true ) {
\add_action( 'wpseo_head', [ $this, 'call_wpseo_opengraph' ], 30 );
}
if ( $this->options->get( 'twitter' ) === true && \apply_filters( 'wpseo_output_twitter_card', true ) !== false ) {
\add_action( 'wpseo_head', [ $this, 'call_wpseo_twitter' ], 40 );
}
}