Created
November 18, 2022 12:52
-
-
Save dartiss/3438920890381349cc2bf2aab6d383ba to your computer and use it in GitHub Desktop.
Add Mastodon verification to a WordPress site
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function add_mastodon_verification() { | |
?> | |
<link rel="me" href="[your Mastodon profile link]"> | |
<?php | |
} | |
add_action( 'wp_head', 'add_mastodon_verification' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This code will allow you to verify your website with Mastadon - when your site is then listed on your profile, it will show in green, as verified.
functions.php
file in your theme folder, replace the bit in brackets (inc. the brackets) with a link to your Mastodon profile.