Home › Forums › Support › Show title filter is not applied This topic has 3 replies, 2 voices, and was last updated 7 years, 2 months ago by Tom. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts January 1, 2017 at 3:10 pm #259696 Martin Hi, I have a strange effect with this filter, if I activate it in snippets all page titles are still shown: add_filter( 'generate_show_title', '__return_false' ); But if I change the code directly in functions.php and force a return value of false it works. Other filters in the same snippet are applied correctly (e.g. generate_get_blog_page_header). Any ideay why this could fail? Regards Martin January 1, 2017 at 7:26 pm #259752 TomLead Developer Lead Developer It may need to be placed in the after_setup_theme hook: https://codex.wordpress.org/Plugin_API/Action_Reference/after_setup_theme add_action( 'after_setup_theme','tu_after_setup_theme' ); function tu_after_setup_theme() { add_filter( 'generate_show_title', '__return_false' ); } January 2, 2017 at 7:59 am #259848 Martin That is correct, with this snippet it works as intended. Thank you. Martin January 2, 2017 at 11:06 am #259953 TomLead Developer Lead Developer You’re welcome 🙂 Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In