CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 14:53:41 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=IzdNtyQ7cOkRENnxI8SaYVG3VWqFuquEC994nQoX%2FRVlgdZuLCs3muQx8jDul7kHoo%2FKtysQf74xKU0Kqoxk7yFDsDJQTHv5w9vWwq8lzteQEK4S"}]}
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
content-encoding: gzip
cf-ray: 98cf30399aeaa8b0-BLR
gform_shortcode_builder_forms - Gravity Forms Documentation
gform_shortcode_builder_forms
Description
The gform_shortcode_builder_forms filter allows the list of available forms displayed in the shortcode builder to be overridden.
Usage
The filter would be used like so:
add_filter( 'gform_shortcode_builder_forms', 'your_function_name' );
Parameters
$forms array
A collection of active forms on site using the form id as the key to the form title.
Examples
1. Remove
This example removes form id 1 from the list of forms which can be embedded using the shortcode builder.
add_filter( 'gform_shortcode_builder_forms', function( $forms ) {
unset( $forms[1] );
return $forms;
});
Placement
This code should be placed in the functions.php file of your active theme or a custom functions plugin.
Since
This filter was added in Gravity Forms v2.4.22.5.
Source Code
This filter is located in GFForms::get_shortcodes() in gravityforms.php.