Form::is_submitted()
Description #
Check if current form is submitted.
Source #
File: lib/class-form.php
public function is_submitted() { $nonce = ap_isset_post_value( esc_attr( $this->form_name ) . '_nonce' ); if ( ap_isset_post_value( esc_attr( $this->form_name ) . '_submit' ) && wp_verify_nonce( $nonce, $this->form_name ) ) { $this->submitted = true; return true; } return false; }
Expand full source code Collapse full source code View on GitHub: lib/class-form.php:293
Add your comment