Hot answers tagged


You certainly could build a custom walker, but perhaps the easiest way out is jquery: $("").parent().addClass("is-active");


If you will not pass that how many arguments you need in your callback function then add_filter will provide you only one and first argument. Because default arguments for add_filter are add_filter ( string $tag, callable $function_to_add, int $priority = 10, int $accepted_args = 1 ); $accepted_args is 1 if you do not pass it. Thus $args is always ...

Only top voted, non community-wiki answers of a minimum length are eligible