daily pastebin goal
26%
SHARE
TWEET

Untitled

a guest Aug 10th, 2018 59 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. How can I create Wordpress tags programmatically?
  2. //Define the category
  3. $my_cat = array('cat_name' => 'My Category', 'category_description' => 'A Cool Category', 'category_nicename' => 'category-slug', 'category_parent' => '');
  4.  
  5. // Create the category
  6. $my_cat_id = wp_insert_category($my_cat);
  7.    
  8. <?php wp_insert_term( $term, $taxonomy, $args = array() ); ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top