wc_prevent_adjacent_posts_rel_link_wp_head

Remove adjacent_posts_rel_link_wp_head - pointless for products.

Description

wc_prevent_adjacent_posts_rel_link_wp_head(); 

Usage

  1. if ( !function_exists( 'wc_prevent_adjacent_posts_rel_link_wp_head' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-template-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wc_prevent_adjacent_posts_rel_link_wp_head(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/includes/wc-template-functions.php  
  1. function wc_prevent_adjacent_posts_rel_link_wp_head() { 
  2. if ( is_singular( 'product' ) ) { 
  3. remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0 );