/** * Converts the old taxonomy meta fields into the new format. * Does NOT save into database. * * @since 3.1 * @param int $post_id The ID of the post * @return array The new settings fields */ public static function convert_post_taxonomy_settings() { // Prepare the old fields $old_fields = array( 'post_taxonomy', 'post_terms', 'post_auto_tax_terms', 'post_tags' ); // Prepare the new fields array $settings = array(); // Generate the new fields foreach( $old_fields as $old_field ) { $settings[ $old_field ] = self::get_instance()->get( $old_field ); } // Return the new fields return WPRSS_FTP_Meta::convert_taxonomy_option( $settings ); }