$tag_list ) { // Trim data $tag_list = trim( stripslashes( $tag_list ) ); // String to array $tags = explode( ',', $tag_list ); // Remove empty and trim tag $tags = array_filter( $tags, '_delete_empty_element' ); // Add new tag (no append ! replace !) wp_set_object_terms( $object_id, $tags, SimpleTags_Admin::$taxonomy ); $counter ++; // Clean cache clean_post_cache( $object_id ); } add_settings_error( __CLASS__, __CLASS__, sprintf( esc_html__( '%1$s %2$s(s) terms updated with success !', 'simple-tags' ), (int) $counter, strtolower( SimpleTags_Admin::$post_type_name ) ), 'updated' ); return true; } } return false; } /** * WP Page - Mass edit tags * */ public static function pageMassEditTags() { global $wpdb, $wp_locale, $wp_query; list( $post_stati, $avail_post_stati ) = self::edit_data_query(); if ( ! isset( $_GET['paged'] ) ) { $_GET['paged'] = 1; } // Display message settings_errors( __CLASS__ ); ?>