Twitter\WordPress\Shortcodes\PeriscopeOnAir::getUsername PHP 메소드

getUsername() 공개 정적인 메소드

Get the Periscope username of the author of the current post
부터: 1.3.0
public static getUsername ( ) : string
리턴 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;
    }