Skip to main content

gravityview_social_get_permalink()

function gravityview_social_get_permalink( $post_link, $passed_post=NULL, $leavename=false, $sample=false )

Filter the permalink for a post with a custom post type.

Since: 3.5.0 (Returns $post_link on a Single Entry page whose View does not show the entry.)

Source: sharing-common-functions.php:176

Parameters​

NameTypeDefaultDescription
$post_linkstringThe post's permalink.
$passed_postWP_Post | nullNULLThe post in question.
$leavenameboolfalseWhether to keep the post name.
$sampleboolfalseIs it a sample permalink.