Description
The “gform_entry_detail_url” filter in Gravity Forms allows the entry_url placeholder to be modified to handle situations in which the wpurl might not match the admin_url.
Usage
1 | add_filter( 'gform_entry_detail_url' , 'your_function_name' , 10, 3 ); |
Parameters
- $entry_url string
The Entry URL to filter.
-
$form Form Object
The current form object.
-
$entry Entry Object
The current entry object.
Example(s)
1 2 3 4 5 | add_filter( 'gform_entry_detail_url' , 'filter_url' , 10, 3 ); function filter_url( $entry_url , $form , $entry ){ return $entry_url ; } |
Placement
Your code snippet should be placed in the functions.php file of your active theme.
Since
Gravity Forms Version 2.2.4
Source Code
This filter is located in GFCommon:replace_variables() in gravityforms/common.php.