Skip to content

Instantly share code, notes, and snippets.

@rafaehlers
Last active March 19, 2019 02:16
Show Gist options
  • Save rafaehlers/5f890b4e0b34e928f698ff8908b2720f to your computer and use it in GitHub Desktop.
Save rafaehlers/5f890b4e0b34e928f698ff8908b2720f to your computer and use it in GitHub Desktop.
Modify the title of the window when priting the View using the DataTables layout
<?php // Make sure to remove this line
add_filter('gravityview/datatables/button_print','gravityview_dtbuttons_print_title', 10 ,2);
function gravityview_dtbuttons_print_title( $button_config = array(), $view_id){
$button_config['title'] = 'Add your own title here';
return $button_config;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment