How to enable Custom Fields that are disabled by theme?

Some one already asked that here, but that doesn’t solve my problem.

My theme disabling the custom fields. How I can enable it manually? I want to know that which code WordPress use to show Custom fields widget? Please help.

Update: Actually this is educational theme that create some new Posting options which are “Course”, “Lesson” & “Testimonial”. I want to bring custom fields there.

Newly created posting methods
Now custom fields option


//Error reporting

//Define constants
define('SITE_URL', home_url().'/');
define('AJAX_URL', admin_url('admin-ajax.php'));
define('THEME_PATH', get_template_directory().'/');
define('THEME_URI', get_template_directory_uri().'/');
define('THEME_CSS_URI', get_stylesheet_directory_uri().'/');
define('THEMEX_PATH', THEME_PATH.'framework/');
define('THEMEX_URI', THEME_URI.'framework/');

//Set content width

//Load language files
load_theme_textdomain('academy', THEME_PATH.'languages');

//Include theme functions

//Include theme configuration file

//Include core class

//Init theme
$theme=new ThemexCore($config);

Solutions Collecting From Web of "How to enable Custom Fields that are disabled by theme?"

Create a Child Theme, Plugin or Must Use plugin, and use add_post_type_support:

/* Plugin Name: Add CF to CPTs */

add_action( 'plugins_loaded', 'add_cpt_support_wpse_116891' );

function add_cpt_support_wpse_116891(){
    # See /wp-admin/edit.php?post_type=SLUG
    add_post_type_support( 'SLUG-POST-TYPE-1', array( 'custom-fields' ) );
    add_post_type_support( 'SLUG-POST-TYPE-2', array( 'custom-fields' ) );
    add_post_type_support( 'SLUG-POST-TYPE-3', array( 'custom-fields' ) );