Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- How can I create Wordpress tags programmatically?
- //Define the category
- $my_cat = array('cat_name' => 'My Category', 'category_description' => 'A Cool Category', 'category_nicename' => 'category-slug', 'category_parent' => '');
- // Create the category
- $my_cat_id = wp_insert_category($my_cat);
- <?php wp_insert_term( $term, $taxonomy, $args = array() ); ?>
Add Comment
Please, Sign In to add comment