Update variable value via add_filter

Question

I have this apply filter in my plugin.

$pre_html = apply_filters( 'events_views_html', null, $view_slug, $query, $context );

I want to change $view_slug value dynamically because I do not want to modify plugin files. Can I do this using add_filter in my child theme ?

It is a basic question but I have limited knowledge of WordPress filters and hooks. Some guidelines regarding this will be appreciated.

0
wplearner 2 years 2020-10-23T13:10:31-05:00 0 Answers 16 views 0

Leave an answer

Browse
Browse