filter – Why is this add_filter function not working as expected?

apply_filters( $tag, $value, $param, $otherparam )

hence apply_filters function function. By default, the value is printed if no function is associated with the filter.

it is not clear whether directorist_icon( 'fas fa-chevron-right', false ) Prints here. But if it is showing the string “Next” on the output, then the filter is doing the right thing.

If you want to print echo apply_filters will help.

If this description doesn’t fit your requirement, can you explain what you want to achieve, I hope I can help.

Leave a Comment