set default hide title astra wordpress

Solutions on MaxInterview for set default hide title astra wordpress by the best coders in the world

showing results for - "set default hide title astra wordpress"
Riccardo
14 Mar 2016
1/* Disable title on all post types. */ 
2  function your_prefix_post_title() { 
3     $post_types = array('page'); 
4     // bail early if the current post type if not the one we want to customize. 
5 if ( ! in_array( get_post_type(), $post_types ) ) { return; } // Disable Post featured image. 
6 add_filter( 'astra_the_title_enabled', '__return_false' ); 
7 }
8 add_action( 'wp', 'your_prefix_post_title' );