Created
October 27, 2025 01:11
-
-
Save rajeshsingh520/4814ec13d942c7eb19ed54fd4f0ddf55 to your computer and use it in GitHub Desktop.
show sales popup only to logged in 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
| add_filter('pi_live_sales_notification_control_filter', function($show){ | |
| if( ! is_user_logged_in() ) { | |
| return false; | |
| } | |
| return $show; | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment