recommended practice for form submission
I would use init hook in your plugin file to register custom function add_action( ‘init’, ‘custom_proccess_form’ ); And then check form inputs in the custom function, you mentioned creating posts function custom_proccess_form() { $wp_error = true; // report errors or not $nonce = $_POST[‘_wpnonce’]; if( isset($_POST[‘insert_post’]) && wp_verify_nonce($nonce, ‘my-nonce-name’) ) { $post = array( ‘post_title’ … Read more