Form_Upload_Manager::should_generate_image_sizes( int $form_id )

Checks whether the typical image sizes should be generated for form uploads.

Description

Parameters

$form_id

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

Return

(bool) True if image sizes should be generated, false otherwise.

Source

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

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

		/**
		 * Filters whether the typical image sizes should be generated for form upload images.
		 *
		 * @since 1.0.0
		 *
		 * @param bool $result  True if image sizes should be generated, false otherwise. Default false.
		 * @param int  $form_id Form ID for which to check this.
		 */
		return apply_filters( "{$this->get_prefix()}form_uploads_should_generate_image_sizes", $result, $form_id );
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.