Hook for shortcode [woof] for changing shortcode arguments on the fly depending of business conditions
| add_filter('woof_filter_shortcode_args', function($args) { //do smth with $args here return $args; }, 99, 1); |
From v.2.2.5/1.2.5
Allows to disable ‘Enable archives’ in product attributes if it is necessary do programmatically on the fly
| add_filter('woof_init_archive_by_default', function($is) { return false; }, 99, 1); |
From v.2.2.5/1.2.5
Allows to change text for ‘Clear all’ button in the search navigation panel
| add_filter('woof_clear_all_text', function($default_text) { return 'Clear the filter'; }, 99, 1); |
From v.2.2.5/1.2.5
Allows to redefine text search SQL request on the fly
| add_filter('woof_text_search_query', function($where, $woof_text) { global $wpdb; $where .= "AND $wpdb->posts.ID IN(15,39,121)"; return $where; }, 99, 2); |
From v.2.2.5/1.2.5
Allows to redefine images of the image filter term on the fly depending of the current situation
| add_filter('woof_taxonomy_image', function($image, $term) { //change images on the fly depending of the current situation if (isset($term->term_id) AND $term->ID === 777 AND intval($_REQUEST['my_condition']) === 23) { $image = "https://your_image_url.png"; } return $image; }, 10, 2); |
From v.2.2.5/1.2.5
From ver.2.2.4/1.2.4 Using this hook it is possible to rewrite view of file: \views\html_types\select.php
From ver.2.2.4/1.2.4 Using this hook it is possible to rewrite view of file: \views\html_types\mselect.php
From ver.2.2.4/1.2.4 Using this hook it is possible to rewrite view of file: \views\html_types\radio.php
From ver.2.2.4/1.2.4 Using this hook it is possible to rewrite view of file: \views\html_types\checkbox.php
From ver.2.2.4/1.2.4 This hook is added for compatibility with other plugins. file: \classes\helper.php public static function get_terms