Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for itunes:applepodcastsverify #1558

Open
eteubert opened this issue Mar 6, 2025 · 0 comments
Open

Add support for itunes:applepodcastsverify #1558

eteubert opened this issue Mar 6, 2025 · 0 comments
Labels

Comments

@eteubert
Copy link
Member

eteubert commented Mar 6, 2025

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

<?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 set
    if ($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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant