Last active
July 8, 2020 15:00
-
-
Save dasbairagya/35e84f9a7529349cfec8a1941a6d5391 to your computer and use it in GitHub Desktop.
Add login button for beside add to cart for logout user
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
| <?php | |
| function wishlist_check(){ | |
| if(!is_user_logged_in()){ | |
| echo '<a class="woo-login-popup-sc-open">Login</a>'; | |
| } | |
| } | |
| add_action('woocommerce_single_product_summary','wishlist_check',30); |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need woocommerce login popup lugin plugin to be pre installed: