Created
November 11, 2016 11:52
-
-
Save MinaPansuriya/fc1ba81800c93000e84687657728deed to your computer and use it in GitHub Desktop.
This file contains hidden or 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
/** | |
* @Title: WooCommerce Show Custom Text on Shop page to non-logged in Customer* @Author: Mina Pansuriya | |
* @Website: http://minapansuriya.com | |
*/ | |
add_action( 'woocommerce_archive_description', 'pbs_woo_product_archive_additiona_details', 20 ); | |
function pbs_woo_product_archive_additiona_details( ){ | |
if(! is_user_logged_in() ) | |
{ | |
echo '<div>Add your custom message for non-logged in user here!!</div><br/>'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment