php – Create a new category with code
I`m try to make a plugin.
When someone install the plugin I want the plugin to automatic make a category for posts in my WP site.
A category called «Recommend».
This category should only be showing in admin area.
If I set this category at a post, a widget should show this post with featured image, title and date.
How can I automatic create a post category with php when i install the plugin ?