You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I already suggested a simple code snippet to use in the thread
<?php/** * Add Apple Podcasts verification tag to RSS feed * * This code adds the itunes:applepodcastsverify tag to your podcast RSS feed. * This tag is used by Apple Podcasts to verify ownership of your podcast. * * Replace 'YOUR_VERIFICATION_TOKEN' with the token provided by Apple Podcasts. */add_action('podlove_rss2_head', function ($feed) {
// Replace 'YOUR_VERIFICATION_TOKEN' with the actual token provided by Apple$verification_token = 'YOUR_VERIFICATION_TOKEN';
// Only output the tag if a token is setif ($verification_token && !empty($verification_token)) {
echo"\n\t".sprintf('<itunes:applepodcastsverify>%s</itunes:applepodcastsverify>', $verification_token);
}
});
What needs to be done:
add a setting form field where the user can input the token
escape the token
maybe use an existing xml node generation function instead of the plain string used here
The text was updated successfully, but these errors were encountered:
via https://community.podlove.org/t/how-to-add-apple-podcast-token-to-claim-existing-show/3429
I already suggested a simple code snippet to use in the thread
What needs to be done:
The text was updated successfully, but these errors were encountered: