Last active
April 1, 2021 18:42
-
-
Save kraftbj/8873958 to your computer and use it in GitHub Desktop.
Add FB Admins meta tag
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
<?php | |
/* | |
* Plugin Name: Custom Facebook Admin Meta Tag | |
*/ | |
function custom_facebook_admin_meta_tag() { | |
$userid = "123456"; | |
$meta = '<meta property="fb:admins" content="' . esc_attr($userid) .'">'; | |
echo $meta; | |
} | |
add_action( 'wp_head', 'custom_facebook_admin_meta_tag'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment