I have created a form on my wordpress site, a function to process the data located in functions.php, and an action php file. I have tested the processing function and know it works, but I'm having trouble getting everything to communicate with wordpress.
update_item_meta.php is located in my theme directory.
Form Opening Tag
<form method="post" id="project-info" action="/wp-content/themes/Avada/update_item_meta.php">
<?php //connect to WP define('WP_USE_THEMES', false); require('../../../wp-load.php'); //call function from functions.php to process form data update_item_meta_data(); ?>
Note: wp-load.php is located in the main site root
If someone could help me out I would really appreciate it. If i had to guess it's a problem with either the path to update_item_meta.php in the form action or update_item_meta.php, but I haven't been able to figure it out.