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. enter image description here

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

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -