gpnf_parent_entry_link_template
Description
Filters the template used to render the parent entry link.
Usage
add_filter( 'gpnf_parent_entry_link_template', 'my_custom_function' );Parameters
template string
The format string used to generate the parent entry link.
label string
The label for the parent entry (default: “Parent Entry”).
parent_entry_id int
The ID of the parent entry.
parent_entry_url string
The URL of the parent entry detail view.
Example
Modify the label from “Parent Entry” to “Main Booking”.
add_filter( 'gpnf_parent_entry_link_template', function( $template, $label, $entry_id, $url ) {
return sprintf( $template, 'Main Booking', $entry_id, $url );
}, 10, 4 );Converts the whole template into a button.
add_filter( 'gpnf_parent_entry_link_template', function( $template, $label, $entry_id, $url ) {
return '<button>' . esc_html( $label ) . ': ' . esc_html( $entry_id ) . '</button>';
}, 10, 4 );Since
This filter is available since Gravity Forms Nested Forms 1.2.4.
All Connections
All Perks
- GF Address Autocomplete
- GF Advanced Calculations
- GF Advanced Phone Field
- GF Advanced Save & Continue
- GF Advanced Select
- GF Auto List Field
- GF Auto Login
- GF Better User Activation
- GF Blocklist
- GF Bookings
- GF Conditional Logic Dates
- GF Conditional Pricing
- GF Copy Cat
- GF Date Time Calculator
- GF Disable Entry Creation
- GF Easy Passthrough
- GF eCommerce Fields
- GF Email Users
- GF Email Validator
- GF Entry Blocks
- GF Expand Textareas
- GF File Renamer
- GF File Upload Pro
- GF Inventory
- GF Limit Checkboxes
- GF Limit Dates
- GF Limit Submissions
- GF Live Preview
- GF Media Library
- GF Multi-Page Navigation
- GF Nested Forms
- GF Notification Scheduler
- GF Page Transitions
- GF Pay Per Word
- GF Populate Anything
- GF Popups
- GF Post Content Merge Tags
- GF Preview Submission
- GF Price Range
- GF QR Code
- GF Randomizer
- GF Read Only
- GF Reload Form
- GF Submit to Access
- GF Terms Of Service
- GF Unique ID
- GF Word Count