Actually, sorry but this isn’t working.
It just redirects to the post submission page. When I remove the following:
if (is_admin() || get_post_type($post_id) != 'post_type_listings') {
return;
}
and edit a post, it then redirects to the correct payment page. But still does not redirect to a payment page upon initial form submission.
Strange?! Any ideas please!?
Many thanks