I have a form which is embedded in a custom post type.
The form action points to a PHP file that sits in my mu-plugins directory:
<form action="http://www.foo.com/wp-content/mu-plugins/FormCode/formprocess.php">
This works fine; upon 'submit', this PHP file is invoked.
The problem I'm having is that formprocess.php doesn't seem to "see" core WP functions as in-scope. For example, calling wp_verify_nonce() is throwing an HTTP 500 error.
I tried adding require_once(ABSPATH .'wp-includes/pluggable.php'); and it is still not working.
What else can I do to assure that core WP files are available to my form handler? Or, is there an entirely different approach I should be using?