Created
August 7, 2020 07:19
-
-
Save DxDiagDx/835c94704045b5b4baa8c09ddbc0f116 to your computer and use it in GitHub Desktop.
WOO: условие вывода на страницах WooCommerce, кроме корзины и оформления заказа
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'woocommerce_before_main_content', 'bbloomer_woo_page' ); | |
function bbloomer_woo_page() { | |
if ( is_woocommerce() ) { | |
echo 'This will show on Woo pages'; | |
} else { | |
echo 'This will show on WP pages'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment