public/wordpress/wp-content/plugins/wp-courseware/includes/admin/pages/page.php
/**
	 * Can Process Form?
	 *
	 * @since 4.3.0
	 *
	 * @return bool If the current tab form can be processed.
	 */
Can Process Form.

@return bool If the current tab form can be processed.
Can Process Form . @return bool If the current tab form can be processed .
public function can_process_form() {
		if ( ! isset( $_POST['wpcw-form-submit'] ) ) {
			return false;
		}
		if ( empty( $_POST['tab'] ) ) {
			return false;
		}
		$current_tab = $this->get_current_tab_slug();
		if ( $current_tab !== esc_attr( $_POST['tab'] ) ) {
			return false;
		}
		if ( $this->has_tab_sections() ) {
			$current_section = $this->get_current_tab_section_slug();
			if ( ! wp_verify_nonce( $_POST['nonce'], "wpcw-{$current_tab}-{$current_section}-nonce" ) ) {
				return false;
			}
		} elseif ( ! wp_verify_nonce( $_POST['nonce'], "wpcw-{$current_tab}-nonce" ) ) {
			return false;
		}
		if ( ! current_user_can( apply_filters( 'wpcw_admin_page_form_process_capability', 'manage_options' ) ) ) {
			return false;
		}
		return apply_filters( 'wpcw_admin_page_form_process_condition', true, $this );
	}
public function can_process_form ( ) { if ( ! isset ( $ _POST [ 'wpcw-form-submit' ] ) ) { return false ; } if ( empty ( $ _POST [ 'tab' ] ) ) { return false ; } $ current_tab = $ this -> get_current_tab_slug ( ) ; if ( $ current_tab !== esc_attr ( $ _POST [ 'tab' ] ) ) { return false ; } if ( $ this -> has_tab_sections ( ) ) { $ current_section = $ this -> get_current_tab_section_slug ( ) ; if ( ! wp_verify_nonce ( $ _POST [ 'nonce' ] , " wpcw- { $ current_tab } - { $ current_section } -nonce " ) ) { return false ; } } elseif ( ! wp_verify_nonce ( $ _POST [ 'nonce' ] , " wpcw- { $ current_tab } -nonce " ) ) { return false ; } if ( ! current_user_can ( apply_filters ( 'wpcw_admin_page_form_process_capability' , 'manage_options' ) ) ) { return false ; } return apply_filters ( 'wpcw_admin_page_form_process_condition' , true , $ this ) ; }
Can Process Form?
Can Process Form?