Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ncesar/c16617ff18b218cf9f3c3bae236fcaa0 to your computer and use it in GitHub Desktop.
Save ncesar/c16617ff18b218cf9f3c3bae236fcaa0 to your computer and use it in GitHub Desktop.
function woo_remove_wc_account_page_noindex(){
if (!is_user_logged_in()) {
remove_action( 'wp_head', 'wc_page_noindex' );
}
}
add_action( 'init', 'YOURPREFIX_remove_wc_account_page_noindex' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment