Form_Upload_Manager::should_set_parent_form( int $form_id )

Checks whether form uploads should have the form they’re uploaded for set as their parent.

Description

Parameters

$form_id

(int) (Required) Form ID for which to check this.

Return

(bool) True if the form should be set as parent, false otherwise.

Source

File: src/components/form-upload-manager.php

	protected function should_set_parent_form( $form_id ) {
		$result = false;

		/**
		 * Filters whether form uploads should have the form they're uploaded for set as their parent.
		 *
		 * @since 1.0.0
		 *
		 * @param bool $result  True if the form should be set as parent, false otherwise. Default false.
		 * @param int  $form_id Form ID for which to check this.
		 */
		return apply_filters( "{$this->get_prefix()}form_uploads_should_set_parent_form", $result, $form_id );
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.