wc_prevent_adjacent_posts_rel_link_wp_head حذف تگ link های بخصوص

تابع ووکامرسی wc_prevent_adjacent_posts_rel_link_wp_head – حذف تگ link های بخصوص ، بلا استفاده برای محصولات ووکامرس
Syntax – سینتکس
wc_prevent_adjacent_posts_rel_link_wp_head();
Usage – نحوه استفاده
if ( !function_exists( 'wc_prevent_adjacent_posts_rel_link_wp_head' ) ) { require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-template-functions.php'; } // NOTICE! Understand what this does before running. $result = wc_prevent_adjacent_posts_rel_link_wp_head();
Defined – محل تعریف
/includes/wc-template-functions.php
function wc_prevent_adjacent_posts_rel_link_wp_head() { if ( is_singular( 'product' ) ) { remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0 ); } }
versions – نسخه ها
از نسخه : 3.0.0
نسخه فعلی : 3.0.6
دیگر نسخه ها : 3.0.6 , 3.0.5 , 3.0.4 , 3.0.3 , 3.0.2
ارسال نظر