Created
August 7, 2020 07:11
-
-
Save DxDiagDx/bb09eac442de4e86b0c03f0ae9773cea 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_tag' ); | |
function bbloomer_loop_tag() { | |
if ( is_product_tag() ) { | |
echo 'This will show on every Cat pages'; | |
} else { | |
echo 'This will show on all other Woo pages'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment