Figured this out, in case anyone is interested:
– Use array_shift() to remove the first item from the array which is ‘post’ and is added by default.
– So your code would look more like:
function my_cpt_post_types( $post_types ) {
$post_types[] = 'movie';
$post_types[] = 'actor';
array_shift($post_types);
return $post_types;
}
add_filter( 'cpt_post_types', 'my_cpt_post_types' );