Answer the question
In order to leave comments, you need to log in
Hook with replacement for Wordpress plugin?
I'm using the comments-widget-plus plugin for Wordpress, the plugin contains html that I need to change the search/replace. The plugin has before the start of the desired html
do_action( 'cwp_before_loop_' . $id );
and after the desired html
do_action( 'cwp_after_loop_' . $id );
but as I understand it is not enough.
The question is what function to add to the template to find and replace html in the widget of this plugin. This is done to safely update the module in the future.
Tried via
function parse_html_widget_title( $content ) {
return str_replace('word', 'test', $content);
}
add_filter('widget_custom_html_content', 'parse_html_widget_title', 11, 3);
but doesn't work.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question