jetpack_forms_log, submission_rejected_parent_trashed_or_deleted
jetpack_forms_log, submission_rejected_parent_trashed_or_deleted
Appears in: jetpack.16.0.1
Hook Type: action
Displaying hooks found in version: jetpack.16.0.1do_action('jetpack_forms_log, submission_rejected_parent_trashed_or_deleted') is found 1 times:
- /jetpack_vendor/automattic/jetpack-forms/src/contact-form/class-contact-form-plugin.php line 2081
// If the parent post doesn't exist or is not trashed/deleted, reject the submission if ( ! $parent_post || in_array( $parent_post->post_status, array( 'trash', 'auto-draft' ), true ) ) { /** This action is documented already in this file. */ do_action( 'jetpack_forms_log', 'submission_rejected_parent_trashed_or_deleted' ); return Form_Submission_Error::system_error( 'form_unavailable', __( 'This form is no longer available.', 'jetpack-forms' ) ); }