Update broke filters | WordPress.org

[ad_1]

Hi!
We have changed the IDs of all filters inside the plugin. You should now specify the filter name in the following order, for example:
add_filter(‘ymc_post_custom_layout_FilterID_LayoutID’, ‘my_custom_post_layout’, 10, 5);
where FilterID is ID of the filter inside Smart Filter Admin Panel Shortcode tab example [ymc_filter id=’165′]LayoutID is serial number of the custom filter layout on the page. Can be find by inspecting the filter css class like: data-target-ymc1

See documentation on github – https://github.com/YMC-22/smart-filter

This applies to other plugin filters as well. see documentation. Thanks

  • This reply was modified 1 hour, 10 minutes ago by ymih22.
  • This reply was modified 1 hour, 9 minutes ago by ymih22.
  • This reply was modified 1 hour, 8 minutes ago by ymih22.
  • This reply was modified 1 hour, 6 minutes ago by ymih22.

Please let us know if you managed to solve this issues.

Thanks for your help here – it’s working again now. I was surprised to see that my working filters had stopped working today, and I wonder how many other people will need to modify their functions.php to accommodate this new change? (Is it likely to change again in future?)

Either way, I’m happy it’s working but just a little worried it will break again after a future update.

Kind regards,

Anthony

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer