You appear to be a bot. Output may be restricted
Description
Registers the appropriate hooks to show the SEO metadata on the frontend.
Removes some actions to remove metadata that WordPress shows on the frontend, to avoid duplicate and/or mismatched metadata.
Usage
Front_End_Integration::register_hooks();
Parameters
Returns
void
Source
File name: wordpress-seo/src/integrations/front-end-integration.php
Lines:
1 to 15 of 15
public function register_hooks() { \add_action( 'wp_head', [ $this, 'call_wpseo_head' ], 1 ); // Filter the title for compatibility with other plugins and themes. \add_filter( 'wp_title', [ $this, 'filter_title' ], 15 ); \add_action( 'wpseo_head', [ $this, 'present_head' ], -9999 ); \remove_action( 'wp_head', 'rel_canonical' ); \remove_action( 'wp_head', 'index_rel_link' ); \remove_action( 'wp_head', 'start_post_rel_link' ); \remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head' ); \remove_action( 'wp_head', 'noindex', 1 ); \remove_action( 'wp_head', '_wp_render_title_tag', 1 ); \remove_action( 'wp_head', 'gutenberg_render_title_tag', 1 ); }