Fix BEAR WooCommerce Bulk Editor Filter Not Working on Pagination

Quick Summary
- Return session from BEAR's woobe_storage_type filter when its product filter stops working on later pages of results.
- woobe_storage_type chooses between PHP sessions and WordPress transients; the snippet ignores the passed $type and always returns session.
- If pagination still breaks the filter, try returning transient instead; BEAR must be active for the code to have any effect.
If you filter products in BEAR (Bulk Editor for WooCommerce Professional, formerly WooCommerce Bulk Editor and Products Manager Professional) and the filter stops working when you use pagination to move to the next page of results, changing how the plugin stores its data can fix it. This snippet does that with the plugin’s woobe_storage_type filter.
Add it to your child theme’s functions.php (or a separate file that functions.php includes) or a code snippets plugin. BEAR must be active for the filter to have any effect.
add_filter('woobe_storage_type', function($type) {
return 'session';//session, transient
});How the fix for the BEAR Bulk Editor filter on pagination works
The woobe_storage_type filter decides which storage BEAR uses. The comment in the code lists the two options: session for PHP sessions and transient for WordPress transients. The function ignores the value passed in $type and always returns session. As with any WordPress filter hook, the returned value is what BEAR uses.
If filtering still breaks across pages after the change, try returning transient instead. If it’s page 2 of a WooCommerce category archive that returns a 404, that’s a different issue; see fixing page/2/ 404 errors on WooCommerce archives.
For more options that the plugin only exposes through code, see BEAR’s documentation page on more settings (implicit).
