Accessing files within WP installation directly is a bad practice. While you can implement a custom core load routine, it is fragile and impossible to reliably ship in public plugins.
There are different approaches to form submission in WP. On of the most appropriate ones (if slightly underknown) is sending form to wp-admin/admin-post.php
and using hooks inside to attach processing logic.
Related Posts:
- Plugin Form Submission Best Practice
- $_POST form request with admin-post
- Handling results from data hooked into admin_post
- What is the real intention for admin-post.php?
- What is the recommended way to create plugin administration forms?
- Using AJAX in a plugin to submit form – REALLY confused
- Post from front-end with post types, categories and taxonomies
- Front-End Form Submission in Shortcode
- Check spam in custom form – akismet
- Use a PHP file as action for a form in a WordPress plugin, what’s the correct way?
- Front-End Interfaces Without Shortcodes
- Best Practices for Creating and Handling Forms with Plugins?
- Plugin options page – form with two different submit buttons
- How to sanitize user input?
- WooCommerce registration password field not displaying
- wordpress plugin php file processing form
- How to add custom fields to the all users page
- Error on inserting a form value to database
- Multiple options pages validation for a plugin
- Form doesnt save to database
- Create custom HTML/JS app inside page
- Plugin Development for registered users
- Is there documentation reference for forms in menu and setting pages?
- Input in plugin widget does not allow spaces
- Avoid updating post when sending POST or GET request to post.php
- admin_post equivalent for guest user?
- How can I add a simple custom field to my plugin?
- Run JavaScript validation script on form submit in plugin
- I am unable to save my data from a form
- The Correct Way to Use Nonce Field without Settings API
- How to add search form in main page body?
- How to make and save custom form in custom plugin page?
- Catching Form Submission in WordPress Admin Panel
- Form using admin-post.php gives 404 after submission
- Submit form to a different PHP file in the same plugin folder
- A function that will remove HTML and tags from a string?
- Plugin Form Submitting to admin-ajax.php instead of admin-post.php
- Form submission to another page returning 404 error [duplicate]
- Lead form that submits to 2 external APIs
- WordPress: redirecting to the form page after form submission to admin-post.php
- How to create a custom post-new.php page for plugin , no wp menu
- Information and Page from WordPress Plugin
- Why is that only the first row getting inserted into Mysql table when i import csv file on backend custom plugin?
- Using AJAX to submit and return data inside the WordPress Plugin Boiler Plate framework
- Use admin-post to submit form data to external database
- How to Maintain url on form submit
- How to retrieve custom profile fields associated with different users
- form does not generate $_POST request
- Form and database, plugin development
- Can I use a hook other than ‘init’ to handle form submissions?
- wp_mail links are dead
- Best way to handle a form post in plugin
- Tracing dashboard publish settings from input form in WordPress
- Post data in wp-admin to external database
- Multi-part form and wp_redirect()
- Page reload occurs before request finishes
- Submitting a plugin form to database in admin page
- Hook a search form anywhere on the site, using a custom plugin
- Plugin forms overwrite each other’s options
- What are the advantages to the Settings API?
- Changing Plugin Load Order
- How to create a plugin that only operates on the home page?
- Adding callback function for wp_ajax_ has no effect
- Paging on a future post loop?
- How to pass custom options from widget form to widget update callback?
- WordPress admin deleted user details not removed in database. How to delete WordPress Users from Database
- plugin development: storing language specific options
- Why do I need to check if wp_nonce_field() exists before using it
- Save Checkbox value in Plugin [duplicate]
- edit_{$taxonomy} | Hook
- Worpdress cannot create directory
- Using the default wordpress uploader inside plugin
- How to associate an existing user to a site in a multisite setup programmatically
- Changing upload dir in a plugin regardless of post type
- Alter post object before display
- Howto: Use Custom Post Types as Submenu Items in Admin
- How to localize admin.php only once
- Failed to Open Stream: Permission Denied While Writing to an XML File in a WordPress Plugin
- Creating a custom Gutenberg block with columns
- Capture mediaelement events
- Add Link Category on Activation?
- How to query children by post name/slug
- get_the_tags with separator control?
- Displaying “One Time” Notification in Plugins
- Is it the right way to add jquery and css in wordpress?
- Print Dashboard submenu name and filename
- Dynamically generate meta tags and titles for a wordpress page
- Hook after attachment added and cropped
- How to get changed post title in my custom plug-in which fires when ‘save_post’ is called?
- Javascript Function Called Too Early in PHP Script
- How to check category name available or not
- submit form data to wordpress existing database table using my plugin
- User avatar-ACF fields
- Object Oriented plugin, add action and variables
- Why user is added back in database after deletion?
- add_action priority and taxonomy used in plugin
- Images not displaying on live server
- redirect word-press page with page values
- Forcing the Uninstall Hook to fail
- Anyway to prevent admin from seeing other admin’s product?