Update Perks Tab Field Settings Title

Experimental Snippet 🧪

Code

Filename: gp-update-perks-tab-title.php

<?php
/**
 * Gravity Perks // Update Perks Tab Field Settings Title
 * https://gravitywiz.com/
 *
 * Experimental Snippet 🧪
 */
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 );

Leave a Reply

Your email address will not be published. Required fields are marked *

  • Trouble installing this snippet? See our troubleshooting tips.
  • Need to include code? Create a gist and link to it in your comment.
  • Reporting a bug? Provide a URL where this issue can be recreated.

By commenting, I understand that I may receive emails related to Gravity Wiz and can unsubscribe at any time.