Created
September 7, 2015 21:23
-
-
Save NikV/727d394e8f2f1ea42418 to your computer and use it in GitHub Desktop.
Change the label in the addnote button
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
//Adding a custom ID and change label | |
function modify_addnote_button_gforms() { | |
$new_addnote_button = '<input type="submit" id="my-custom-addnote-styles" name="add_note" value="' . esc_attr__( 'Create Note', 'gravityforms' ) . '" class="button" style="width:auto;padding-bottom:2px;" onclick="jQuery(\'#action\').val(\'add_note\');"/>'; | |
return $new_addnote_button; | |
} | |
add_filter('gform_addnote_button', 'modify_addnote_button_gforms'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment