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
add_action('elementor/widgets/widgets_registered', function($widgets_manager) { $widgets_manager->unregister_widget_type('wp-widget-woof_widget'); }); |
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
function woof_init_toggles() { | |
jQuery('body').on('click','.woof_container_inner h4', function () { | |
if (jQuery(this).children().data('condition') == 'opened') { | |
jQuery(this).children().removeClass('woof_front_toggle_opened'); | |
jQuery(this).children().addClass('woof_front_toggle_closed'); | |
jQuery(this).children().data('condition', 'closed'); | |
if (woof_toggle_type == 'text') { | |
jQuery(this).children().text(woof_toggle_closed_text); | |
} else { | |
jQuery(this).children().find('img').prop('src', woof_toggle_closed_image); |
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
add_filter('woof_get_request_data', 'my_woof_get_request_data'); | |
function my_woof_get_request_data($data){ | |
$data['stock']='instock'; | |
return $data; | |
} |