wordpress - How can i set default post title when someone will go to add new post not placeholder, force to set at least 1 category and 3 tags -
i trying set default post title when go add new post, tried question wordpress set default title when creating new custom post no solution. trying force 1 category select , @ least 3 tags. if 1 not add 1 category message displayed in top of post title field not javascript alert.
you can use function add default title
function my_default_title_filter() { global $post_type; if ('post' == $post_type) { return 'my filtered title'; } } add_filter('default_title', 'my_default_title_filter');
also maybe can use plugin force selecting category , tags https://wordpress.org/plugins/required-fields/
Comments
Post a Comment