Skip to main content

gravityview_get_template_id()

function gravityview_get_template_id( $view_id )

Get the template ID (list, table, datatables, map) for a View

See Also

Deprecated: use gravityview_get_multiple_entries_template_id instead.

Source: includes/connector-functions.php:230

Parameters

NameTypeDefaultDescription
$view_idintThe ID of the View to get the layout of.

Returns

  • string — GravityView_Template::template_id value. Empty string if not.