| CARVIEW |
Select Language
HTTP/2 301
date: Sat, 27 Dec 2025 04:35:05 GMT
content-type: text/html; charset=UTF-8
location: https://docs.gravityforms.com/gform_embed_edit_post_link/
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: MISS
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=YynFpGqhbOSVdwA1GTQ13ybJ32lWWybpPKp%2FHpRB91ol2lXnXjAVSWU2Qf9wDor%2FDvwPwa%2Bnz4PzxWomLxXpsRX2B9MnjorUjOcWic5YrHXReoV7"}]}
cf-ray: 9b461bf0a89be8e0-BLR
HTTP/2 200
date: Sat, 27 Dec 2025 04:35:06 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: EXPIRED
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=%2Bgc4Q4gX6MvjNrENoqMuwVgcJ7MvD0E1ZDyzTlNiOR%2Bm86rWkiLAzLq7Fx3EXlnUAHcKQ6cbQ8SKCstxizERkFq0D1%2BhEdhPh2jR1C8aEAUIzJ6E"}]}
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
content-encoding: gzip
cf-ray: 9b461bf74bdfe8e0-BLR
gform_embed_edit_post_link - Gravity Forms Documentation
gform_embed_edit_post_link
Description
The gform_embed_edit_post_link filter is used to customize the edit post link template for the Embed Form flyout.
Usage
The filter which runs for all would be used like so:
add_filter( 'gform_embed_edit_post_link', 'your_function_name' );
Parameters
- $edit_link string
The edit link. Use%1$sas the placeholder for the page/post ID.
$edit_link = 'https://example.com/wp-admin/post.php?post=%1$s&action=edit';
Example
This example shows how you can change the page and post query argument name.
add_filter( 'gform_embed_edit_post_link', function ( $edit_link ) {
$edit_link = str_replace( 'post.php?post=', 'custom-page.php?something=', $edit_link );
return $edit_link;
} );
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.6.2.
Source Code
This filter is located in \Gravity_Forms\Gravity_Forms\Embed_Form\Config\GF_Embed_Config::get_urls() in includes/embed-form/config/class-gf-embed-config.php.