Thanks. I do need a little help in rewriting. I found https://wpsmith.net/2013/wp/use-registered_post_type-hook-to-modify-post-type-registration/ as an example of filtering the arguments but I haven’t done this before.
I see you have $args = apply_filters( 'ctc_post_type_sermon_args', $args ); // allow filtering
which allows you to create the filter.
In the example I found from the link above, they have
add_action( 'registered_post_type', 'gs_books_label_rename', 10, 2 );
/**
* Modify registered post type menu label
*
* @param string $post_type Registered post type name.
* @param array $args Array of post type parameters.
*/
function gs_books_label_rename( $post_type, $args ) {
if ( 'gs_books' === $post_type ) {
global $wp_post_types;
$args->labels->menu_name = __( 'Books', 'gs_books' );
$wp_post_types[ $post_type ] = $args;
}
}
Which allows you to filter the menu_name of the post type gs_books.
Would this same thing work for the sermons where the post type is ctc_sermon?
Do I use ctc_post_type_sermon_args instead of registered_post_type since that is the hook?