BEAR - WooCommerce Bulk Editor and Products Manager Professional

More settings (implicit)

Hidden options (from v.2.0.6/1.0.6) due to the complexity of their understanding, rare use, technical requirements, more flexibility by code, etc. :

  • Values to set products count per page. By hook ‘woobe_set_per_page_values‘: (premium version)
    add_filter('woobe_set_per_page_values', function($add) {
        return '10,30,100,150,200';
    });

    Be care with big values (memory overflow)!

  • Exclude tabs for specific users/roles. By hook ‘woobe_show_tabs‘:
    add_filter('woobe_show_tabs', function ($show, $slug) {
        $rules = array('settings', 'meta', 'info');
        if (!current_user_can('administrator') AND in_array($slug, $rules)) {
            $show = false;
        }
     
        return $show;
    }, 99, 2);
  • Include child terms in filter results. By default if to filter by any term will be found products with this selected term and will be not found another products even if they has any child of this selected parent term. By hook ‘woobe_filter_include_children‘:
    add_filter('woobe_filter_include_children', function($include, $tax) {
        $alow = ['product_cat', 'pa_color'];
     
        if (in_array($tax, $alow)) {
            $include = true;
        }
     
        return $include;
    }, 10, 2);
  • Control the ability of editing fields depending of the user/role. By hook ‘woobe_user_can_edit‘:
    add_filter('woobe_user_can_edit', function($is_forbidden, $field_key, $shop_manager_visibility_array) {
        $user = wp_get_current_user();
        //print_r($shop_manager_visibility_array);
        if (in_array('author', (array) $user->roles)) {
            if ($field_key == 'sku') {
                $is_forbidden = 1;
            }
        }
     
        return $is_forbidden;
    }, 10, 3);
  • Ability to make any custom operations with field new value before its updating. By hook ‘woobe_before_update_product_field‘:
    add_filter('woobe_before_update_product_field', function($value, $product_id, $field_key) {
     
        //$condition= your code here
     
        //example
        if ($field_key === 'post_title' AND $condition) {
            $value .= " Some text";
        }
     
        return $value;
    }, 10, 3);
  • hook woobe_storage_type (from v.2.0.8/1.0.8) help in cases when troubles with session on the server and filtering of products doesn work, allows to set transient as filtering storage
    add_filter('woobe_storage_type', function($type) {
        return 'session';//session, transient
    });
    

     

  • Hook ‘woobe_product_statuses‘ – allows to add more products statuses (from v.2.0.8.1/1.0.8.1)
    add_filter('woobe_product_statuses', function($statuses) {
        $statuses['archive'] = 'Archive';
        return $statuses;
    });