Replace a word with a word in the URL string

Check the Filter Reference — there are filters like the_content, the_title, wp_title, etc. I’m not sure what you’d filter to get the logo description and footer — you might need to delve into your theme’s code. Also, make sure you sanitize anything you get from $_GET — never ever trust user-generated content. See Data Validation … Read more

Overwrite or Replace code in WP_Footer

Since you ruled out remove_action there is only one way you can do it. And you’ve guessed it: preg_repalce, substr mixture but with a little help and PHP DOM add_action(‘wp_footer’, ‘my_start_footer_ob’, 1); function my_start_footer_ob() { ob_start(“my_end_footer_ob_callback”); } add_action(‘wp_footer’, ‘my_end_footer_ob’, 1000); function my_end_footer_ob() { ob_end_flush(); } function my_end_footer_ob_callback($buffer) { // remove what you need from he … Read more

An echo line in a transition_post_status action leads to “cannot modify header information – headers already sent by”

The error message you are seeing is normal for that operation. By the time the transition_post_status hook fires, the HTTP page headers is already sent. By simply echoing an error message inside a hook like transition_post_status which was never intended to echo any output to the browser, as you did, you are actually trying to … Read more