Dashboard Views: Display the View title

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( 'gk/gravityview/dashboard-views/view/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.

Still need help? Contact Us Contact Us