WP Final Output Filter Wordpress Plugin - Rating, Reviews, Demo & Download

WP Final Output Filter Wordpress Plugin - Rating, Reviews, Demo & Download
No ratings yet
Free
Follow for free plugins, new theme releases and theme news

Plugin Description

Adds the filter hook wp_final_output for the whole output of the entire page. The WordPress Core doesn’t contain such a filter. For developers or more advanced WP site owners.

What does it do?

You can use the filter wp_final_output to change the whole output of the page (f.e. the html).
That way you could make modifications before the page is sent to the visitors’ browser.

add_filter('wp_final_output', 'wp_replace_b_tags', 10, 1);

function wp_replace_b_tags($content) {
    $content = str_replace('<b>', '<strong>', $content);
    $content = str_replace('</b>', '</strong>', $content);
    return $content;
}

How does it work?

You only have to install and activate the plugin to make it work (the plugin doesn’t have an admin page).
When activated you can change the output of the entire page by using the wp_final_output filter.

Sources

Screenshots

No screenshots provided


Reviews & Comments