Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // taxonomy : relacionados
- $todelete = array('relacionados');
- foreach ( $todelete as $slug ) {
- $term = get_term_by('slug', $slug, 'post_tag');
- if ( ! is_wp_error($term) && ! empty($term) )
- wp_delete_term( $term->term_id, 'post_tag');
- }
- ?>
Add Comment
Please, Sign In to add comment