"mainwp_header_left" strips HTML and inserts content between H4 tags

I use the filter “mainwp_header_left” to add content to the top left header. I have placed a few buttons and the search bar for the sites there. Since the recent dashboard update. HTML gets stripped before content is put there. This renders this filter rather useless. Also, the filter just puts the content between H4 tags. Why?

Please enable us to add HTML to the header or fix the current filter. A filter named “mainwp_header_left” is not expected to just add text to the headline.

THE HTML GETS STRIPPED HERE:
/class/class-mainwp-ui.php

IN THIS LINE:
MainWP_Utility::esc_content( $left, ‘note’, $more_tags );

HOW I USE THE FILTER:
add_filter( ‘mainwp_header_left’, ‘enym_headerbuttons_function’, 10, 3 );

[“mainwp_before_header” is a hook that cannot be used for this. It just modifies the $websites array afaik]

Bump? Is there any MainWP dev who wants to help? We really need a solution :frowning: I thought MainWP wanted to support devs but please listen to us or at least provide me with a channel to get a solution.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.