Support for site verification codes

This commit is contained in:
2024-03-16 14:21:57 +01:00
parent 96e084e353
commit bee1f6c96c
20 changed files with 271 additions and 61 deletions

View File

@ -0,0 +1,12 @@
<?php
function kompass_seo_add_verfications() {
$googleVerification = get_option('kompass_seo_google_verification', '');
if ('' !== $googleVerification) {
echo '<meta name="google-site-verification" content="' . $googleVerification . '" />' . "\n";
}
$bingVerification = get_option('kompass_seo_bing_verification', '');
if ('' !== $bingVerification) {
echo '<meta name="msvalidate.01="' . $bingVerification . '" />' . "\n";
}
}