jetpack_og_get_social_image_token

jetpack_og_get_social_image_token

Hook Type: filter

See hook in core

Displaying hooks found in version: jetpack.15.0

apply_filters('jetpack_og_get_social_image_token') is found 1 times:

  • /functions.opengraph.php line 622
    	 * @since 14.9
    	 *
    	 * @param string|WP_Error|null $token The token to return, or null to use default behavior.
    	 */
    	$token = apply_filters( 'jetpack_og_get_social_image_token', null );
    	if ( null !== $token ) {
    		return $token;
    	}
    
    	if ( ! function_exists( '\Automattic\Jetpack\Publicize\Social_Image_Generator\fetch_token' ) ) {
    		return new WP_Error( 'jetpack_og_get_social_image_token_error', __( 'Social Image Generator is not available.', 'jetpack' ) );