Add Supports to Any Custom Post Type (Including External Plugins)

Discovered this handy cheat-function over here and it was just what I have been looking for to help me add further customization to all the Custom Post Types that are created by Plugins upon installation.

Here’s a short snippet demonstrating how to use the code to add thumbnail support:

add_action('init', 'my_custom_init');

function my_custom_init() {



	add_post_type_support( 'cctor_coupon', 'thumbnail' );

	

	post_type_supports( 'cctor_coupon', 'thumbnail' );



}

Integration possibilities are endless!

Leave a Reply

katherine as a flat graphic icon

About Me

I’m an African / Ojibwe First Nations Web Developer living in Winnipeg, Manitoba.

Visit the Tips and Blog to see what I’m working on.