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:
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]