Skip to content

Function

Buffer an action hook call so that it's content can be returned.

tml_buffer_action_hook( )

Return

string The result of the action call.

Source

function tml_buffer_action_hook() {
    $args = func_get_args();
    if ( ! is_string( $args[0] ) ) {
        return;
    }
    ob_start();
    call_user_func_array( 'do_action', $args );
    return ob_get_clean();
}

Uses

Used by

Changelog

VersionDescription
7.0 Introduced.