Last active
August 7, 2020 06:40
-
-
Save DxDiagDx/fd35bdf2f2a4e3af1e1ad24149dd4cf7 to your computer and use it in GitHub Desktop.
WOO: Условие вывода на странице магазина
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_loop_shop' ); | |
function bbloomer_loop_shop() { | |
if ( is_shop() ) { | |
echo 'Это сообщение видно только на странице магазина'; | |
} else { | |
echo 'Это сообщение видно на всех остальных страницах WooCommerce'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment