JavaScript hooks on plugin
-
Hello,
Thanks for nice plugin
can you please help me to use javascript hook
https://docs.berocket.com/plugin/woocommerce-ajax-products-filter#javascript-2
I don’t know where I should put this codebapf_custom_smb_open_function = function(use_default, $this) { $this.find('.bapf_body').first().show(); if( $this.find('.bapf_colaps_smb').length ) { $this.find('.bapf_colaps_smb').removeClass('fa-chevron-down').addClass('fa-chevron-up'); } return false; } if ( typeof(berocket_add_filter) == 'function' ) { berocket_add_filter('colaps_smb_open_apply', bapf_custom_smb_open_function); } else { jQuery(document).on('berocket_hooks_ready', function() { berocket_add_filter('colaps_smb_open_apply', bapf_custom_smb_open_function); }); }
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘JavaScript hooks on plugin’ is closed to new replies.