Last active
July 17, 2019 21:54
-
-
Save endurtech/8b2fcc4ba581eff9fe0b65bd6119b8df to your computer and use it in GitHub Desktop.
Custom Checkbox "Select All" Label For All Forms or a Specific Form
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| //Custom Checkbox "Select All" Label For Specific Form (Replace _FORMID, example _4) | |
| add_filter( 'gform_checkbox_select_all_label_FORMID', 'cform_checkbox_select_all_label', 10, 2 ); | |
| function cform_checkbox_select_all_label( $select_label, $field ) | |
| { | |
| return "MY CUSTOM LABEL"; | |
| } | |
| ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| //Custom Checkbox "Select All" Label For All Forms | |
| add_filter( 'gform_checkbox_select_all_label', 'cform_checkbox_select_all_label', 10, 2 ); | |
| function cform_checkbox_select_all_label( $select_label, $field ) | |
| { | |
| return "MY CUSTOM LABEL"; | |
| } | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment