Skip to main content

gravityview_social_can_render_entry()

function gravityview_social_can_render_entry( $view, $gv_entry )

Whether the View shows the entry on its Single Entry page.

Uses \GV\View::can_render_entry() when GravityView has it, and the same checks otherwise.

See Also​

  • \GV\View::can_render_entry() GravityView's own answer; drop the fallback once the minimum GravityView has it.
  • gravityview_social_get_entry_view() Picks the View and runs can_render() before this.

Since: 3.5.0

Source: sharing-common-functions.php:84

Parameters​

NameTypeDefaultDescription
$view\GV\ViewThe View.
$gv_entry\GV\EntryThe entry, or a joined entry.

Returns​

  • true | \WP_Error