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
/** | |
* Filter Gravity Forms select field display to wrap optgroups where defined | |
* USE: | |
* set the value of the select option to `optgroup` within the form editor. The | |
* filter will then automagically wrap the options following until the start of | |
* the next option group | |
*/ | |
add_filter( 'gform_field_content', 'filter_gf_select_optgroup', 10, 2 ); | |
function filter_gf_select_optgroup( $input, $field ) { |
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
[ | |
// Chris' "emacs refugee" Sublime Text 2 key mappings. Depends on | |
// sublemacspro and Wrap Plus packages, plus a custom pdb.set_trace snippet | |
// named set_trace.sublime-snippet. It outs me as someone who uses cursor | |
// keys; try not to judge. | |
// "bol"/"eol" goes to a logical begin/end of line; we want it to go to true | |
// line begin/end, so we use hardbol/hardeol instead for ctrl-a and ctrl-e |