End of Year Sale: 30% off your first year on annual plans. Use code AP5-30-OFF See plans

Blubrry custom meta

1 min read
function custom_json_api_prepare_post( $post_response, $post, $context ) {
 
    $powerpress_content = powerpress_get_enclosure_data($post['ID'], $feed_slug='podcast');

    if ($powerpress_content) {
    $post_response['do_api_action']['default']['below_content'] = '<a href="' . $powerpress_content['url'] . '" class="button button-block">Play podcast</a>';
    }
 
    return $post_response;
}
add_filter( 'json_prepare_post', 'custom_json_api_prepare_post', 10, 3 );
WordPress

iOS & Android app builder for WordPress

Ready to build your app?

Turn your WordPress site into iOS and Android apps with push notifications on every plan.

AppPresser End of Year Sale: 30% off AppPresser subscriptions, now through Dec 31. Two phones show sample news and events apps built with AppPresser.

End of Year Sale

30% off your first year

On Standard, Professional and Advanced annual plans. Enter the code at checkout. Ends December 31, 2026 at 11:59 PM ET.

Code AP5-30-OFF
See pricing