add_post_type_support multiple post types syntax?
-
I would like to now the syntax for add_post_type_support for multiple post types. So in the code below I would like subtitle support for both custom-post-type-slug1 and custom-post-type-slug2. Can anyone help me how to do that?
function theme_slug_add_subtitles_support() { add_post_type_support( 'custom-post-type-slug1', 'subtitles' ); } add_action( 'init', 'theme_slug_add_subtitles_support' );
Thanks in advance
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘add_post_type_support multiple post types syntax?’ is closed to new replies.