' . "\n";
}
}
}
/**
* Output the Google+ specific title
*/
public function google_plus_title() {
if ( is_singular() ) {
$title = WPSEO_Meta::get_value( 'google-plus-title' );
/**
* Filter: 'wpseo_googleplus_title' - Allow developers to change the Google+ specific title
*
* @api string $title The title string
*/
$title = trim( apply_filters( 'wpseo_googleplus_title', $title ) );
if ( is_string( $title ) && $title !== '' ) {
$title = wpseo_replace_vars( $title, get_post() );
echo '' . "\n";
}
}
}
/**
* Output the Google+ specific image
*/
public function google_plus_image() {
if ( is_singular() ) {
$image = WPSEO_Meta::get_value( 'google-plus-image' );
/**
* Filter: 'wpseo_googleplus_image' - Allow changing the Google+ image
*
* @api string $img Image URL string
*/
$image = trim( apply_filters( 'wpseo_googleplus_image', $image ) );
if ( is_string( $image ) && $image !== '' ) {
echo '' . "\n";
}
}
}
}