ColoredCow / wordpress-init

Boilerplate code for a new WordPress Site
GNU General Public License v3.0
6 stars 5 forks source link

Need to make a feature image required for post type #15

Open mohitgusain opened 4 years ago

pokhiii commented 4 years ago

@mohitgusain This may differ from one project to another. I can think something like the following:

is_post_thumbnail_required( true );

which we can add to the theme's functions.php file. We can then possibly look to extend the function further to make the thumbnail required for specific post types by passing a second parameter:

is_post_thumbnail_required( true, array( 'team_members' ) );