Skip to content

Instantly share code, notes, and snippets.

@turtlepod
Created September 12, 2017 06:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save turtlepod/36f610f33e5cf9efe09e4f5e9f1eedb0 to your computer and use it in GitHub Desktop.
Save turtlepod/36f610f33e5cf9efe09e4f5e9f1eedb0 to your computer and use it in GitHub Desktop.
Disable Listify 2.3.0 Popup
<?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 );
} );
@maripepi
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment