You’re POSTing the form to the validate.php file directly, so the WordPress code isn’t loaded. Instead you need to POST the form to the current URL or the home_url or something like that, and then have the plugin intercept the data and act accordingly, so that the WordPress code is loaded before you use its functions.
Related Posts:
- Hide prices and checkout functionality in woocommerce
- Alter how often WordPress Auto-Updates Plugins
- How can I find plugins’ slug?
- How to get a variable number of posts per post type on the main loop?
- My custom made plugin has “a new version available” which links to unrelated plugin
- Link to Download Latest WordPress PLUGIN Version
- Difference between deactivating, uninstalling, and deleting plugins
- How to fetch serialized data from wordpress options
- plugin get value from admin panel page
- WordPress network: set themes and plugins for new blog
- Advanced Custom Fields into functions.php
- How can I get a list of plugins and which blogs are using them?
- How WordPress autosave can save plugin fields?
- nonces in custom oop plugin
- Custom Text Under Navigation Links
- How do I know which plugin uses the most resource?
- Set a category for a page
- How to redirect a Custom Google Search to a wordpress page/template?
- force customers to add only single item to card per purchase EDD [closed]
- Preventing BFA in WordPress without using a plugin
- How to obtain page breadcrumb based on menu structure only?
- Multisite installation but do plugins always have to be multisite compatible?
- HTML in WooCommerce settings
- Only allowing some email addresses to create an account
- Where (or when) should I register a new taxonomy?
- Widget with same content across several websites
- WordPress plugin compatibility explaination when wordpress releases its new version (theoretical)
- Fixing WordPress’s Bug (failed to send buffer of zlib output compression) results in “White Screen of Death”
- How to tie dark mode with prefers-color-scheme webkit? [closed]
- how to oauth1 Wp plug-in revoke/reset.?
- Why can’t I access my Intranet LDAPS with NADI?
- qTranslate remove default directory from link
- WordPress adding a menu page when activating a plugin
- wordpress file upload with ajax when site is ajaxyfi
- Plugin to create forms using HTML [closed]
- Create a plugin from within WordPress
- Call plugin with php function
- Render content of multiple pages and their descendants
- Overriding post’s font-family
- How to keep variable `$post` to using in another file
- Error checking when future updates are automatic
- wc_get_template new template does not showing up
- Override/ignore CSS from active theme as not to interfere with my custom CSS
- WordPress Custom Pages that work with Plugins?
- How to use the CSS of the WordPress core in the development of my administration page?
- Using custom php file for ajax url inside plugin
- Sending HTML email containing custom fields to site users from WordPress
- Plugin – Admin menu page broken url
- Hide DIV if empty – Plugin Gallery
- Override css rules of a plugin within my own theme
- Article content navigator in wordpress like mbaskool website
- Retrieve Plugin Settings and insert into XML string
- Linked pages from plugin on front can’t see $wpdb
- Defining the value of a variable before a function?
- What archive plugin works with W3 total cache? [closed]
- Theme deactived html and css styling on home page posts
- Website Captcha Error: The reCAPTCHA wasn’t entered correctly
- WordPress Multisite Profile Picture Sync Error with Nextend Social Login Plugin
- WordPress plugins – “Update” in backend vs replacing all files with never version
- Unexpected character and syntax error on wp-includes/formatting.php [closed]
- Error datatable whit ajax
- How can I change a translation for a string in a plugin?
- My plugin runs on every single WordPress page, but I want it to run only on activation
- Can’t Edit Row Layout on SiteOrigin Plugin
- working code, not working – Plugin Dev
- category page multiple products add to cart any plugin available for woocommerce
- Nested Actions and Filters
- Create dynamic / data driven pages in wordpress
- Saving data only when payment is successful
- Can’t install plugins after updating to WordPress 4.9
- register_activation_hook doesn’t fire at all
- Cron jobs in wordpress
- Plugin sending emails to external addresses, not internal
- Passing variable from template file to the plugin file
- Adding a custom page template to a plugin generated page
- History of page, interval of years
- Choose default template for a page with code
- Resetting AUTO_INCREMENT primary key
- How to fix On “An unexpected error occurred” message when I click on Add new theme or plugin?
- How to display post by date written (1974) and not date published (today)?
- Hide some shortcodes on posts from back-end
- Issue of page width with twenty fourteen theme
- WordPress Search return wrong results
- Does Google detect files in the WordPress plugin directory
- Adding google authenticator and use only email address of user
- How to Batch Upload .docx Files as Posts
- WPMU site in subdirectory: When I clone a site with NS Cloner Pro plugin, how do I remove the subdirectory from the URL?
- How to add multiple versions of the same featured image for SEO reasons?
- Facebook Feed Grabber Cache Relative to Dev Machine, not Server Install
- Rewrite rule help for gallery plugin
- Twilio Easy Call plugin
- Adding a google map to a metabox, map has inline style height=0
- woocommerce buy button [closed]
- How to pull wordpress posts from one blog to an external blog?
- Take Elementor For Email FIeld Check if user is registered. IF not registered then register on woocommerece
- Template selector for woocommerce product
- How to access values from your own settings page in javascript?
- Rewrite Rule in htaccess convert query string into slashes
- how can add review by, edit by (Author) on wordpress site
- ImageMagick on wordpress 6.5.5 for Linux Alma 8 success but which no magick