Skip to content

Commit 0cf93a4

Browse files
authored
gp-update-perks-tab-title.php: Migrated from experimental folder.
1 parent a1c7410 commit 0cf93a4

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
/**
3+
* Gravity Perks // Update Perks Tab Field Settings Title
4+
* https://gravitywiz.com/
5+
*
6+
* Experimental Snippet 🧪
7+
*/
8+
add_action( 'gform_field_settings_tabs', function( $tabs ) {
9+
foreach ( $tabs as &$tab ) {
10+
if ( $tab['title'] === __( 'Perks', 'gravityperks' ) ) {
11+
// Update "Bonus Features" to whatever you want to call the perks tab.
12+
$tab['title'] = 'Bonus Features';
13+
}
14+
}
15+
return $tabs;
16+
}, 99 );

0 commit comments

Comments
 (0)