soklovsk
Forum Replies Created
-
I’ve solved it – it was my ignorance in assuming that I correctly added the ‘woof_html_types_view_checkbox‘ filter.
My mistake was that when I first used the filter, I have provided not the path to file but URL, so the file wasn’t rendering. Then I have used “echo get_template_part(…)” formula inside the filter which has been obviously erroneous as it was generating HTML but I couldn’t use variables (so it was useless) and then I came here to ask the question.
Now I reexamined my code and noticed that my problem originates in the incorrect way of adding a filter as plugin didn’t receive path to file, but the theme was generating HTML on its own. Proper usage of ‘woof_html_types_view_checkbox’ fixes it – now it works perfectly.
So in case someone in future has some similar troubles, remember to return the file path (like /home/ftp/…/file.php) NOT the file URL (like https://website.com/file.php) 🙂
Thank you for the support!
Thank you for answer.
I use this filter and I’m able to replace custom filter with, let’s say, ‘hello world’ text. My issue is that I don’t know how can I access information about the current filter (name, taxonomy, description and so on) in my custom template.
I’m sorry if I misexplained this in the previous post.
Disabling WP-Rocket caching plugin resolved the problem.
I’ve noticed that there are such JS errors appearing when not-logged-in user uses page and which are not present when logged-in administrator uses it:
[Error] ReferenceError: Can’t find variable: woof_current_values
(jquery.min.js:2:31711)
[Error] ReferenceError: Can’t find variable: woof_autosubmit
(jquery.min.js:2:31711)
[Error] ReferenceError: Can’t find variable: woof_current_values
(jquery.min.js:2:31711)`- This reply was modified 3 years, 5 months ago by soklovsk.