How to Change the Entry ID Column Label with WPSyncSheets For Gravity Forms?
This guide explains how to safely rename the first column (Entry ID) in your feed sheet headers without breaking the feed functionality.
Why You Need This
- The first column must always be Entry ID. This column is required for the feed to work correctly.
- You can change the displayed label (e.g.,
Post ID) to make it more meaningful for your workflow. - The label must be unique and mapped to Entry ID in the field mapping settings.
Important: Do not remove or skip the Entry ID column. It must remain mapped.
How to Add the Filter
Add the following code to your theme’s functions.php file:
add_filter( 'wpssw_filter_entry_id_header_label', function( $label, $feed_id, $form_id ) {
if ( 4 === (int) $feed_id && 1 === (int) $form_id ) {
return 'Post ID'; // Change this to your preferred label
}
return $label;
}, 10, 3 );
$feed_id– The feed you want to rename the label for.$form_id– The form this feed belongs to.- Return value – The custom label you want to display.
This change only affects the specified feed and form. Other feeds or forms will remain unchanged.
Steps After Adding the Filter
- Manually update your existing Google Sheet header to match the new label.
- Or create a new sheet or spreadsheet from the settings page so the default headers include your new label.
This ensures smooth syncing and prevents errors due to mismatched headers.
Important Rules
- The first column must be mapped to Entry ID.
- The custom label should be unique among all headers.
- Feed ID and Form ID are required to prevent affecting other feeds.
By following these steps, you can rename the Entry ID column safely while keeping all feed functionality intact.