• Resolved antforshaw

    (@antforshaw)


    Hi,

    The update to the plugin today has caused all of my custom filters to stop working. Did the update reorder the internal ID numbers of the filters?

    Many thanks in advance,

    Anthony

Viewing 6 replies - 1 through 6 (of 6 total)
  • ymih22

    (@ymih22)

    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 2 years ago by ymih22.
    • This reply was modified 2 years ago by ymih22.
    • This reply was modified 2 years ago by ymih22.
    • This reply was modified 2 years ago by ymih22.
    ymih22

    (@ymih22)

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

    Thread Starter antforshaw

    (@antforshaw)

    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

    ymih22

    (@ymih22)

    This was one of the important plugin updates. In the future, such global changes are not yet in sight. Thanks for your feedback.

    Thread Starter antforshaw

    (@antforshaw)

    That’s great, thank you. (Excellent plugin by the way!)

    ymih22

    (@ymih22)

    Please rate our work) Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Update broke filters’ is closed to new replies.