<input type="submit" class="button-primary" value="<?php _e('Save Changes'); ?> "/> </p> </form> </div> <?php } } MVCategoryMedia::get_instance(); MVCategoryFields::get_instance(); add_filter('mv_additional_cat_meta', function ($cat_id) { $category_img = MVImageField::get_value($cat_id); $category_video = MVVideoField::get_value($cat_id); $video_html = ''; if ($category_video) { $video_html = MVVideoIntegrations::get_video_embed_url_not_auto($category_video); } $meta_html = apply_filters('mv_additional_cat_video_html', $video_html); $img_html = wp_get_attachment_image($category_img, 'large'); $meta_html .= apply_filters('mv_additional_cat_img_html', $img_html); return $meta_html; }, 1); add_filter('category_description', function ($content, $cat_id) { $meta_content = ''; if (!is_admin()) { $meta_content = apply_filters('mv_additional_cat_meta', $cat_id); } return $meta_content . $content;
protected function _save_fields($term_id) { MVImageField::save($term_id); MVVideoField::save($term_id); }