WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to add support for a custom feature for a custom post type, after it has been created?

I know how to create a custom post type using register_post_type(), and how to use the supports parameter to specify what the CPT should support;

'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt' ,'headway-seo') 

But for the situations when the CPT is being registered by a plugin or theme, is there a way to 'inject' support elements (manipulate the support array) of the CPT after it has been registered, using a WP hook/filter?

share|improve this question
Just noticing that the answer is in the Codex page as well: register_post_type... – brasofilo Oct 21 '12 at 16:59
up vote 4 down vote accepted

Yes, there's a function called add_post_type_support

Hook into init -- late, after the post types have been created -- and add support.

Adding support for excerpts to pages for instance:

add_action('init', 'wpse70000_add_excerpt', 100);
function wpse70000_add_excerpt()
    add_post_type_support('page', 'excerpt');
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.