Documentation

wp-hide/ob_start_callback

Posted in: Getting Started (4) How To (15) Plugin Options Explained (37) Actions / Filters (32)      Html Content (5)  

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

This is the filter through which the plugin allow changes to outputted HTML buffer.


        add_filter( 'wp-hide/ob_start_callback', 'custom_ob_start_callback' ); 
        function custom_ob_start_callback( $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