It seems the solution I needed was to add this snippet of code to my custom template file for the form page.
$pmc = $_GET['pmc'];
if($pmc == false){
header('Location: ' . get_bloginfo('url') );
}
Related Posts:
- Browser title script ignoring is_page /else conditional [closed]
- WordPress from url get external source title
- REQUIRED: get_bloginfo(‘template_url’) was found in the file search.php. Use get_template_directory_uri() instead
- Can’t put a hyperlink on Featured Post’s Image
- Redirect users not logged in to the standard login page (and back) from some posts and pages
- get_page_by_title() doesn’t return the post object if the title has inverted comma (‘)
- if is specific custom post in cpt
- Add class to group inner container
- Databases – Submitting data from inputs to database [closed]
- Is it better to store images and other files in the root directory or the theme directory
- Search WordPress using static html page
- How to check if the current page is at a specified path in the URL?
- How to get post permalink url without a href
- WP_OPTIONS table, active_plugins entry [closed]
- Resize image to specific dimension (X to Y ratio)
- How to keep track of when a vote is cast?
- Convert the_permalink() function output into string
- Verify if a category is the child of another category
- AJAX wp_insert_user WORKS but responds with “The site is not enabled”
- Redirection after submitting duplicate comment
- ACF Repeater Pagination stopped working since upgrade to php7.2
- Using featured image of blog archive page
- Fatal error: Uncaught Error: Call to undefined function get_header() [closed]
- get_current_site() is undefined
- Highlight the links without using dropdown
- Automatically Add Page Links to Nav Menu
- blank white page when post/update/change option etc
- Incrementing PHP variable onclick to display posts by month
- add button to specific post
- WordPress PHP syntax doesn’t seem to be working correctly
- Use variable in SQL statement
- Why, when moving a WordPress multisite network, have my theme customisations stopped working?
- Where should I copy a PHP file from wp-includes to, in order to override it in my child theme?
- How to edit wordpress pages through cpanel? [closed]
- Is it possible to restrict files from your wordpress uploads (not logged-in users or guest)?
- Adding attribute to the post.php form tag in wp-admin
- limit number of post for achive page
- writing an unique php function to be used on my website
- How to get movies by date
- Get options from database using php class
- Problem in replacing the_content with the_excerpt()
- How to change the author box selection on a post to a custom taxonomy
- Is there way to toggle the publish date display?
- Need to add a post’s featured image to a section on the frontpage
- Output product category link from WP_Query
- Adding onload to body for certain pages
- How to send a php var to jQuery Ajax call with two different file
- Variation prices breakdown only for single product page
- not outputting medium size image URL
- How to block specific user id in custom login form?
- How to use wp_ajax_set_post_thumbnail?
- Best way to use variables in multiple functions?
- Passing a value from an input field to a php function in WordPress?
- Download Featured Image Link in Post Shortcode
- Get product price in a different currency using WooCommerce Currency Switcher
- Store user form submitted information in post type
- Block that renders html saved in a php file
- Show subcategory name selected in specific category woocoommerce
- Posts Per Page with a button to add more Posts
- Cannot fetch posts with certain ‘product_cat’. WP_Query is empty
- WordPress files break if I edit them, but adding a closing PHP tag fixes it
- $_GET[‘title’] in WordPress
- Can’t update or install plugins in WordPress, php unidentified index
- Add custom attribute to product’s HTML to woocommerce cart page
- Change WooCommerce template for PDF – access to custom field
- Detect what link user clicks and Redirect to a specific page for logged in users only
- Offset with ajax load more posts duplicates
- Displaying logged in user name
- Advanced WordPress SQL Query
- How to detect if a revision was made by woocommerce or wordpress?
- Editing existing pre-created menus in PHP
- Create a hierarchical loop at predefined markup requirements
- Setting ‘post_format’
- If else statement based on referral URL
- media-uploader insert into post is not inserting
- Page 2+ of taxonomy archives does not recognise sort-order from dropdown
- Not logged in when using http
- Is this correct get_template_part() in WordPress?
- Editing a WordPress plugin to add my own functionality
- Retrieve first image url from custom post with pagination
- How to set up and use a custom upload directory for post type ‘product’
- How to show value from ACF plugin field in e-mail?
- Where to store the images of a custom WordPress theme?
- Exclude specific product tags from related products in WooCommerce 3+ [closed]
- WooCommerce Orders pagination
- Import and use a variable in additional settings of Contact Form 7 [closed]
- How can I fix my pagination?
- Insert PHP into wordpress page [duplicate]
- How to remove the intro animation which appears during the load up of some WordPress themes? [closed]
- How to send push notification in android using php? [closed]
- Custom form that stores data in mysql database
- How to get data (not value or name) from radio options to POST to database
- Adding commas between post titles on an archive page?
- Authenticate + Authorize WP REST API request before built-in WP JSON Schema Payload Validation?
- can someone help me what’s wrong with this code?
- Fatal Error: Uncaught ArgumentCountError: Too few arguments to function – on logout of wordpress dashboard
- Why is my custom email notification after purchase not sending?
- Error when loading Dashboard
- Woocommerce, via php snippet: How to get product price and divide it by a number from an attribute, and then display the new price via php/html?
- Session seems to break