Last active
          November 4, 2020 08:55 
        
      - 
      
- 
        Save rafaehlers/724c9d6c4f36b3ae3d71d7b7800bffe3 to your computer and use it in GitHub Desktop. 
    Rename the Update and Delete buttons on the Edit Entry page
  
        
  
    
      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 // DO NOT COPY THIS LINE | |
| add_filter( 'gravityview/edit_entry/button_labels', 'gv_modify_edit_entry_buttons', 10, 4 ); | |
| function gv_modify_edit_entry_buttons( $labels, $form, $entry, $view_id ){ | |
| $labels = array( | |
| 'cancel' => __( 'Cancel Update', 'gravityview' ), | |
| 'submit' => __( 'Update Entry', 'gravityview'), | |
| 'next' => __( 'Next page', 'gravityview'), // for multi-page forms | |
| 'previous' => __( 'Previous page', 'gravityview') // for multi-page forms | |
| ); | |
| return $labels; | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment