Twitter\WordPress\Shortcodes\Follow::getScreenName PHP 메소드

getScreenName() 공개 정적인 메소드

Get the Twitter screen name of the author of the current post
부터: 1.0.0
public static getScreenName ( ) : string
리턴 string Twitter screen name or empty if no screen name stored
    public static function getScreenName()
    {
        $screen_name = \Twitter\WordPress\User\Meta::getTwitterUsername(get_the_author_meta('ID'));
        if (!$screen_name) {
            return '';
        }
        return $screen_name;
    }