Last active
August 29, 2015 14:04
-
-
Save digitalchild/92d3df1c75dcab101e59 to your computer and use it in GitHub Desktop.
Notify Vendors if They Haven't Configured Their Stores
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
$author_id = get_current_user_id(); | |
$shop_name_set = PV_Vendors::get_vendor_shop_name( $author_id ); | |
$vendor_login = get_userdata($author_id); | |
if ($shop_name_set == $vendor_login->user_login) { | |
// Only choose one of the following lines depending on what theme you have. | |
// Use the following line if you have a WooThemes theme. | |
echo do_shortcode( '[box type="alert"]<strong><h3>You havent configured your store name!</h3><p>More message text here.<br><br><a href="'.$settings_page.'">Click here to set your store name</a></p>.[/box]' ); | |
// Use this line for any other theme | |
echo '<h3>You havent configured your store name!</h3><p>More message text here.<br><br><a href="'.$settings_page.'">Click here to set your store name</a>.</p>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment