Is it possible to make URLs relative for just a singular custom post type? I used these 2 lines in make just my custom post types to use relative URLs.
add_filter( 'post_type_link', 'wp_make_link_relative' ); // Custom post type link
add_filter( 'post_type_archive_link', 'wp_make_link_relative' ); // Post type archive link
This worked great, until I realized I had a trickle down problem of my events no longer resolving properly if they were shown on a sub-domain. My site has a few different mapped sub-domains, so I'm now looking to narrow my add_filter to just the custom post type I need instead of all of them.
post_type_link