Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 3 additions & 11 deletions experimental/gp-update-perks-tab-title.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
<?php
/**
* Gravity Perks // Update Perks Tab Field Settings Title
* https://gravitywiz.com/
* We're no longer using the experimental folder for experimental snippets. 🚧
* You can now find the snippet here:
* https://github.com/gravitywiz/snippet-library/blob/master/gravity-forms/gp-update-perks-tab-title.php
*/
add_action( 'gform_field_settings_tabs', function( $tabs ) {
foreach ( $tabs as &$tab ) {
if ( $tab['title'] === __( 'Perks', 'gravityperks' ) ) {
// Update "Bonus Features" to whatever you want to call the perks tab.
$tab['title'] = 'Bonus Features';
}
}
return $tabs;
}, 99 );
Loading