Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter sunnyt13

    (@sunnyt13)

    I was actually able to get it to work using this snippet:

    function custom_user_contactmethods( $user_contact ) {
        // Add TikTok
        $user_contact['tiktok'] = __( 'TikTok profile URL' );
     
        return $user_contact;
    }
    add_filter( 'user_contactmethods', 'custom_user_contactmethods' );
    
    function custom_yoast_seo_social_profiles( $social_sites ) {
        // Add TikTok
        $social_sites['tiktok'] = 'TikTok';
     
        return $social_sites;
    }
    add_filter( 'wpseo_schema_person_social_profiles', 'custom_yoast_seo_social_profiles' );

    Let me know if there’s any issue with using that.

    Thanks!

    Plugin Support Maybellyne

    (@maybellyne)

    Hello @sunnyt13

    Thanks for using the Yoast SEO plugin. The plugin does not have the feature to add a TikTok profile URL but you are free to extend the functionality, though we are unable to review your solution.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘TikTok Social Profile URL?’ is closed to new replies.