CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 14:51:43 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: MISS
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=KaKZ0t7JxoVTunb8WCCydWWUEM4avB2z1ryMRxDTvxYOi1m3R%2B%2BHI0677jzfQxgr95YSeBjKe0kQC9IjfXPyLkfLoyc0Za2nst3%2FP5LlFGBelJDD"}]}
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
content-encoding: gzip
cf-ray: 98cf2d553d02c464-BLR
gform_shortcode_preview_disabled - Gravity Forms Documentation
gform_shortcode_preview_disabled
Description
This filter is used to enable/disable the shortcode preview within the Add Form button.
Usage
add_filter( 'gform_shortcode_preview_disabled', 'your_function_name' );
Parameters
- $preview_disabled bool
Determines if the shortcode preview should be disabled. Defaults to true (disabled).
Example
add_filter( 'gform_shortcode_preview_disabled', 'your_function_name' ); function your_function_name() { // Enables the shortcode preview return false; }
Placement
This code should be placed in the functions.php file of your active theme.
Source Code
This filter is located in gravityforms.php.