wp_finalized_template_enhancement_output_buffer

wp_finalized_template_enhancement_output_buffer

Appears in:
Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.9

do_action('wp_finalized_template_enhancement_output_buffer') is found 2 times:

  • /wp-includes/template.php line 962
     
    	// If the content type is not HTML, short-circuit since it is not relevant for enhancement.
    	if ( ! $is_html_content_type ) {
    		/** This action is documented in wp-includes/template.php */
    		do_action( 'wp_finalized_template_enhancement_output_buffer', $output );
    		return $output;
    	}
    
    	$filtered_output = $output;
    
    	$did_just_catch = false;
    
  • /wp-includes/template.php line 1058
    		 * @since 6.9.0
    		 *
    		 * @param string $output Finalized output buffer.
    		 */
    		do_action( 'wp_finalized_template_enhancement_output_buffer', $filtered_output );
    	} catch ( Throwable $throwable ) {
    		// Emit to the error log as a warning not as an error to prevent halting execution.
    		$did_just_catch = true;
    		trigger_error(
    			sprintf(
    				/* translators: %s is the class name */