Hello,
Thank you for your reply. I disabled all the plugins/themes and it seems to still be a issue with the redirect. It still sets the cookie though.
I changed the code to use $referer = wp_get_referer($_SERVER[‘HTTP_REFERER’]); instead and it seems to work.
Do you know the hook or code I would use to plugin into this function so I can make sure it works?
I did go through all the settings on the install and all look correct.
– Thanks
Okay thanks for the info.
I ended up using the register_post_type_arg hook instead. It seemed to work out perfectly but thanks for the info!
function add_events_to_rest( $args, $post_type ) {
if ( ‘event’ === $post_type ) {
$args[‘show_in_rest’] = true;
}
return $args;
}
add_filter( ‘register_post_type_args’, ‘add_events_to_rest’, 10, 2 );