| CARVIEW |
Select Language
HTTP/2 301
date: Sat, 27 Dec 2025 09:26:42 GMT
content-type: text/html; charset=UTF-8
location: https://docs.gravityforms.com/gform_editor_sidebar_panels/
server: cloudflare
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
content-security-policy: frame-ancestors 'self';
referrer-policy: no-referrer
referrer-policy: strict-origin-when-cross-origin
x-redirect-by: WordPress
fastcgi-cache: HIT
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=Avm30%2B55Tin1Mt2TYTZlaBdbBuGfIGR2bucPVwlB%2FzAiVwD82rPEka37pjDyvZpcMV8CX5OcFiUWY9Yt4VuvJBeez2HgNIFsAj1fgcA8hdlneYGU"}]}
cf-ray: 9b47c71bfbcff473-BLR
HTTP/2 200
date: Sat, 27 Dec 2025 09:26:42 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
content-security-policy: frame-ancestors 'self';
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=v8PTfIlFYQzw5uNg7gv0OAHnF3V0P9wZRUx%2BDqHLqXcBoq%2Biwr7r3j5CrvuPRYPrHRC1y2WTVQP4StzxtxgsqgQnHEui5uGsSZ1%2F3CwAsjeNeKag"}]}
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
content-encoding: gzip
cf-ray: 9b47c721ca72f473-BLR
gform_editor_sidebar_panels - Gravity Forms Documentation
gform_editor_sidebar_panels
Description
The gform_editor_sidebar_panels filter enables custom panels to be registered for display in the form editor sidebar. Use the gform_editor_sidebar_panel_content action hook to echo the panel content.
Usage
The filter which would run for all forms would be used like so:
add_filter( 'gform_editor_sidebar_panels', 'your_function_name', 10, 2 );
You can also target a specific form by adding the form id after the hook name.
add_filter( 'gform_editor_sidebar_panels_6', 'your_function_name', 10, 2 );
Parameters
| Parameter | Type | Description |
|---|---|---|
| $panels | array | An array of custom sidebar panels. |
| $form | Form Object | The form currently being edited. |
Examples
1. Add a new panel
add_filter( 'gform_editor_sidebar_panels', function ( $panels, $form ) {
$panels[] = array(
// Define the unique ID for your panel.
'id' => 'my_custom_panel_1',
// Define the title to be displayed on the toggle button for your panel.
'title' => 'My Custom Panel',
// Define an array of classes to be added to the toggle button for your panel.
'nav_classes' => array( 'my_nav_class_1', 'my_nav_class_2' ),
// Define an array of classes to be added to the body of your panel.
'body_classes' => array( 'my_body_class_1' ),
);
return $panels;
}, 10, 2 );
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 v2.5.
Source Code
This filter is located in GFFormDetail::forms_page() in form_detail.php