Documentation

wp-hide/ob_start_callback/text_preserve

Posted in: Getting Started (3) Plugin Options Explained (22) Actions / Filters (19) How To (5)      Replace (10)    Code Example (2)  

This functionality is available for PRO version.

Name: wp-hide/ob_start_callback/text_preserve
Type: Filter
Arguments: $buffer

This filter can be used to change any outputted HTML buffer. Similar to wp-hide/ob_start_callback except this will run inside text preserve loop.


        add_filter( 'wp-hide/ob_start_callback/text_preserve', 'custom_ob_start_callback_text_preserve' ); 
        function custom_ob_start_callback_text_preserve( $buffer )
            {
                
                $buffer =   str_replace("Powered by WordPress" , "", $buffer);
                
                return $buffer;
                   
            }

The $buffer contain the full HTML data which is being sent to browser as server response.

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn
Scroll to top