CARVIEW |
Select Language
HTTP/2 301
date: Sun, 12 Oct 2025 01:09:10 GMT
content-type: text/html; charset=UTF-8
location: https://docs.gravityforms.com/gform_image_choice_label_visibility_default/
server: cloudflare
x-redirect-by: Yoast SEO Premium
x-frame-options: SAMEORIGIN
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
referrer-policy: strict-origin-when-cross-origin
fastcgi-cache: HIT
strict-transport-security: max-age=31536000; includeSubDomains
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=mLOdrZnlrTOeEMT92vOQDBo3e%2Bt2OFk3owjNS4wwKC%2B5kYM8Q4ROpH41ySnrN3ekwXb9zWxYYMbuXtk4Z2RvMQjhz5bYe4itdRBI%2FJ3g0Vxq9FzY"}]}
cf-ray: 98d2b5cdd9d71ec2-BLR
HTTP/2 200
date: Sun, 12 Oct 2025 01:09:10 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
vary: Accept-Encoding
strict-transport-security: max-age=604800
strict-transport-security: max-age=31536000; includeSubDomains
x-content-type-options: nosniff
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
x-xss-protection: 1; mode=block
x-frame-options: SAMEORIGIN
x-frame-options: SAMEORIGIN
referrer-policy: no-referrer
referrer-policy: strict-origin-when-cross-origin
link: ; rel="https://api.w.org/"
link: ; rel="alternate"; title="JSON"; type="application/json"
link: ; rel=shortlink
fastcgi-cache: HIT
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=9%2BgZPybruZ4kG1TE1VY3sYmNEtW0mmx0RqjrkUL7AH6Omh9wtv51%2Bv0v9YC2IGVG8zYIhW5lbX7qAailXANqptfoZXpp0nrA%2BwVrvXJlSyN8klld"}]}
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
content-encoding: gzip
cf-ray: 98d2b5d2dd441ec2-BLR
gform_image_choice_label_visibility_default - Gravity Forms Documentation
gform_image_choice_label_visibility_default
Description
Allows the default Image Choice label visibility setting to be managed.
Usage
Applies to all forms:
add_filter( 'gform_image_choice_label_visibility_default', 'your_function_name', 10, 1 );
Applies to a specific form:
add_filter( 'gform_image_choice_label_visibility_default_FORMID', 'your_function_name', 10, 1 );
Parameters
- $label_visibility_default string
Default is show.
Examples
Updates the choice label visibility, setting the default to hide the labels. It will also hide the inputs for any form where a new Image Choice field is added.
add_filter( 'gform_image_choice_label_visibility_default', function( $label_visibility_default) {
return 'hide';
}, 10, 1 );
Placement
This code can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.
See also the PHP section in this article: Where Do I Put This Code?
Since
This filter was added in Gravity Forms 2.9.
Source Code
This filter is located in includes/fields/class-gf-field-image-choice.php