Skip to content

Instantly share code, notes, and snippets.

@iamsathyaseelan
Last active September 25, 2019 05:04
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 iamsathyaseelan/2330662b58ea46227973cee848adc460 to your computer and use it in GitHub Desktop.
Save iamsathyaseelan/2330662b58ea46227973cee848adc460 to your computer and use it in GitHub Desktop.
Retainful Premium - add to cart email collection (show popup for pages building using page builders)
/*
* Replace 'add_to_cart_button_classes' values with comma seperated multiple classes
*/
add_filter('retainful_premium_add_to_cart_collection_button_classes',function($classes){
//For version 1.0.9 above
return $classes['add_to_cart_button_classes'] = '.elementor-button-link';
//For version 1.0.9 and below
//return array('add_to_cart_button_classes' => '.elementor-button-link');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment