Handles a save request if conditions are met.
Description
See also
Parameters
- $post_id
-
(int) (Required) Current post ID.
Source
File: src/db-objects/forms/form-edit-page-handler.php
public function maybe_handle_save_request( $post_id ) { if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) { return; } if ( wp_is_post_revision( $post_id ) ) { return; } if ( is_multisite() && ms_is_switched() ) { return; } $form = $this->form_manager->get( $post_id ); if ( ! $form ) { return; } $this->handle_save_request( $form ); }
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |