Documentation for ppl_
-
Documentation is missing for
ppl_${$class}filters.The following array is iteratively applying filters so you can use your own class instead of the default PLL_Admin_${$class}.
$classes = array( 'Filters', 'Filters_Columns', 'Filters_Post', 'Filters_Term', 'Nav_Menu', 'Sync', 'Classic_Editor' ); foreach ($classes as $class) { add_filter(...) }Have a look at the
add_filtersmethod near line 97 in file ./polylang/admin/admin.phpWhen I do something like this:
class MyClass {} add_filter('pl_nav_menu', 'MyClass');Than I get: Fatal error: Uncaught Error: Class name must be a valid object or a string in admin.php on line 117
Seems like I still have to include my class somewhere.
Please update the documentation regarding this filter.
The topic ‘Documentation for ppl_’ is closed to new replies.