Skip to main content

gv_calendar_render()

function gv_calendar_render( $feed_id=0, $view_id=0, string $secret='', $height='' )

Render the gv_calendar shortcode

Since:

  • 1.1
  • 2.22.0 (Added the $height parameter.)

Source: includes/class-calendar-shortcode.php:137

Parameters​

NameTypeDefaultDescription
$feed_idint0ID of the feed to render
$view_idint0GravityView View ID
$secretstring''Feed secret, required when the feed is secured.
$heightmixed''Height for this embed only (e.g. 400px, 100%, 10vh, auto). Empty means the feed's own Sizing and Height settings decide.

Returns​

  • string — Shortcode markup