Skip to content

Add support for a custom post type

Ben Huson edited this page Jul 29, 2013 · 2 revisions

You can use the WordPress add_post_type_support() method to add subtitle support for a custom post type.

The following shows an example of how to add support for an 'event' post type:

<?php
function add_wps_subtitle_event_support() {
	add_post_type_support( 'event', 'wps_subtitle' );
}
add_action( 'init', 'add_wps_subtitle_event_support' );
?>