Skip to content

Instantly share code, notes, and snippets.

@hellofromtonya
hellofromtonya / functions.php
Last active September 7, 2016 01:46
Gravity Forms - Add new predefined bulk choices (including specifying label and value)
add_filter('gform_predefined_choices', 'lunarwp\add_predefined_choice');
/**
* Add custom Bulk Predefined Choices to Gravity Forms for Regions
*
* @since 1.0.0
*
* @param array $choices Predefined choices array
* @return array Amended array with our new choices added
*/
function add_predefined_choice($choices)