remove action adjacent_posts_rel_link_wp_head

I want to remove the pagination on my front page, which has a static homepage.

<link rel='next' href='http://domain/page/2/'/>

I use this code but it doesn’t remove it:

remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10, 2 );

What’s wrong?

Read more here: remove action adjacent_posts_rel_link_wp_head

Leave a Reply

Your email address will not be published. Required fields are marked *