daily pastebin goal
4%
SHARE
TWEET

Untitled

a guest Mar 13th, 2018 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. // taxonomy : relacionados
  3. $todelete = array('relacionados');
  4.  
  5. foreach ( $todelete as $slug ) {
  6.   $term = get_term_by('slug', $slug, 'post_tag');
  7.   if ( ! is_wp_error($term) && ! empty($term) )
  8.       wp_delete_term( $term->term_id, 'post_tag');
  9. }
  10. ?>
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