Display the View title (Dashboard Views)

When displaying a View in the dashboard, there is no View title displayed.

To display a View title, use the following code snippet:

add_action( 'gravityview/admin/before', function( $view ) {
	echo '<h1>' . esc_html( get_the_title( $view->ID ) ) . '</h1>';
} );

This will display the View title in a H1 tag before any of the View is rendered.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.