0

function ijab_account_noindex(){
 if ( is_page( get_option('woocommerce_myaccount_page_id') ) || is_cart() ) {
  remove_action( 'wp_head', 'wc_page_noindex' );
 }
}
add_action( 'template_redirect', 'ijab_account_noindex' );

admin Asked question December 11, 2020
Add a Comment