filter

jetpack_open_graph_fallback_description

Filter the fallback `og:description` used when no excerpt information is provided.

Parameters

$var
string

Fallback og:description. Default is translated `Visit the post for more'.

$data
object

Post object for the current post.

Changelog

How to use this hook

See “How to use actions and filters to customize Jetpack”.

Notes

When a post doesn’t include any excerpt (either because you didn’t add any text in the post content, or it’s a password-protected post), Jetpack creates a default Open Graph description value, “Visit the post for more”. That description is used on places like Facebook, when sharing a link to your post. The `jetpack_open_graph_fallback_description` filter allows you to change that value, like so:
function jeherve_custom_og_desc_fallback( $var, $data ) {
    return 'You should really click to find out more about this post!';
}
add_filter( 'jetpack_open_graph_fallback_description', 'jeherve_custom_og_desc_fallback', 10, 2 );