Support » Plugin: Twitter Cards » Adding Twitter Usernames

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Niall Kennedy

    (@niallkennedy)

    See the “How do I add my Twitter account?” section of the FAQ:
    http://wordpress.org/plugins/twitter-cards/faq/

    The code below only pick specified twitter, how about for those users that have included their twitter account on their profile.

    Does it automatically add their twitter account?

    function twitter_custom( $twitter_card ) {
        if ( is_array( $twitter_card ) ) {
            $twitter_card['creator'] = '@niall';
            $twitter_card['creator:id'] = '1085';
        }
        return $twitter_card;
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding Twitter Usernames’ is closed to new replies.