You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to understand how custom filters are supposed to be used. As I am not familiar with the plugin I'm trying to use my intuition, so please correct me if I am wrong.
Looking at 1 it seems that a comma separated list of keys should be passed to custom_filter, with the relative parameters in custom_filter_label. These two are then used to generate the $row key, which should contain all the relevant data to be passed to generate_filter_[jump|select]menu() to generate the actual filter.
What I cannot understand is why get_tp_options()2 is invoked with the filter name, as that argument should be the chosen category (i.e. teachpress_pub), if I understand correctly.
As that table contains the defined meta fields, is the custom filter supposed to work only on those or on conventional fields as well?
Hi,
I'm trying to understand how custom filters are supposed to be used. As I am not familiar with the plugin I'm trying to use my intuition, so please correct me if I am wrong.
Looking at 1 it seems that a comma separated list of keys should be passed to
custom_filter
, with the relative parameters incustom_filter_label
. These two are then used to generate the$row
key, which should contain all the relevant data to be passed togenerate_filter_[jump|select]menu()
to generate the actual filter.What I cannot understand is why
get_tp_options()
2 is invoked with the filter name, as that argument should be the chosencategory
(i.e.teachpress_pub
), if I understand correctly.As that table contains the defined meta fields, is the custom filter supposed to work only on those or on conventional fields as well?
core/shortcodes.php
core/class-db-options.php
Footnotes
https://github.com/winkm89/teachPress/blob/master/core/shortcodes.php#L139 ↩
https://github.com/winkm89/teachPress/blob/272dba02a792887da0cf120646d324b7696f4552/core/shortcodes.php#L167 ↩
The text was updated successfully, but these errors were encountered: