Post data from non-admin user in WordPress -
i'm speaking of "post" in html method, not blog post. overlap in terminology part of reason can't find i'm looking for.
i have admin pages set forms, using add_action('admin_post_something', 'my_function');
handle saving form data database. works marvelously.
now have client-side piece requires user logged in post data, not admin. admin_post_something
hook not work (returns page not found) because user not admin. expected behavior.
what hook action should use process , store information coming client-facing portion of site, , should function located? examples or links documentation appreciated.
thanks
inside function processes post data, have conditional check see if form has been submitted. example:
if ( isset( $_post['a-hidden-field-name-in-your-form'] ) ) { // here because form has been submitted }
Comments
Post a Comment