Created
September 12, 2017 06:30
-
-
Save turtlepod/36f610f33e5cf9efe09e4f5e9f1eedb0 to your computer and use it in GitHub Desktop.
Disable Listify 2.3.0 Popup
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
<?php | |
/** | |
* Disable Listify v.2.3.0 PopUp for WooCommerce My Account Page. | |
*/ | |
add_action( 'init', function() { | |
remove_filter( 'listify_js_settings', array( $GLOBALS['listify_woocommerce'], 'add_myaccount_login_popup_trigger' ) ); | |
} ); | |
/** | |
* Disable Listify v.2.3.0 Login PopUp Completely. | |
*/ | |
add_action( 'init', function() { | |
add_filter( 'listify_js_settings', function( $settings ) { | |
$settings['loginPopupLink'] = array(); | |
return $settings; | |
}, 99 ); | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I've tried it in 2.4 version and it's not working.
Do you have one update?
Thanks a lot, very useful trick.