Twitter\WordPress\Shortcodes\PeriscopeOnAir::getUsername PHP Méthode

getUsername() public static méthode

Get the Periscope username of the author of the current post
Since: 1.3.0
public static getUsername ( ) : string
Résultat string Periscope username or empty if no screen name stored
    public static function getUsername()
    {
        $username = \Twitter\WordPress\User\Meta::getPeriscopeUsername(get_the_author_meta('ID'));
        if (!$username) {
            return '';
        }
        return $username;
    }