Hi
I found that to be not correct, at least on my site. Setting a custom URL for the event does NOT redirect requests to the event’s single page, nor does it remove the page from the sitemap. From what I see, setting the URL simply changes the link from the schedule, while the single page still remains accessible when requested.
– Yes, this is how it works and it should not redirect all the requests from the default event page to a custom one nor remove the default links from the sitemap
It is possible to override the post types with the hooks below. You may add them to the functions.php file of the child theme:
Event
function theme_edit_mp_event_post_type( $args, $post_type ) {
if ( 'mp-event' === $post_type ) {
$args['public'] = false;
}
return $args;
}
add_filter( 'register_post_type_args', 'theme_edit_mp_event_post_type', 10, 2 );
Column
function theme_edit_mp_column_post_type( $args, $post_type ) {
if ( 'mp-column' === $post_type ) {
$args['public'] = false;
}
return $args;
}
add_filter( 'register_post_type_args', 'theme_edit_mp_column_post_type', 10, 2 );