Checks whether the typical image sizes should be generated for form uploads.
Description
See also
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
Version | Description |
---|---|
1.0.0 | Introduced. |