Skip to main content

gravityview_social_get_title()

function gravityview_social_get_title( $previous_title, $post_id=0, $view=null )

Get the title to be used for the social sharing. Can be overridden.

Since:

  • 3.2 (Added $view parameter.)
  • 3.5.0 (Returns $previous_title when the entry in the request is not shown by $view, or by the page's View when $view is not passed.)

Source: sharing-common-functions.php:125

Parameters​

NameTypeDefaultDescription
$previous_title
$post_idint0
$view\GV\View | nullnull

Returns​

  • string