Skip to content

Commit 8a41083

Browse files
authored
gp-update-perks-tab-title.php: Migrated.
1 parent a1c7410 commit 8a41083

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed
Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
11
<?php
22
/**
3-
* Gravity Perks // Update Perks Tab Field Settings Title
4-
* https://gravitywiz.com/
3+
* We're no longer using the experimental folder for experimental snippets. 🚧
4+
* You can now find the snippet here:
5+
* https://github.com/gravitywiz/snippet-library/blob/master/gravity-forms/gp-update-perks-tab-title.php
56
*/
6-
add_action( 'gform_field_settings_tabs', function( $tabs ) {
7-
foreach ( $tabs as &$tab ) {
8-
if ( $tab['title'] === __( 'Perks', 'gravityperks' ) ) {
9-
// Update "Bonus Features" to whatever you want to call the perks tab.
10-
$tab['title'] = 'Bonus Features';
11-
}
12-
}
13-
return $tabs;
14-
}, 99 );

0 commit comments

Comments
 (0)