Change post title if post has specific category
$post is undefined in your filter. You need to explicitely invoke the $post global inside your filter function to have it available. You must remember that variables (even global variables) outside a function will not be available inside a function, that is how PHP works. You actually do not need to use the $post global, … Read more