wpcom_podcasting_enable_play_tracking
wpcom_podcasting_enable_play_tracking
Appears in: jetpack.16.0
Hook Type: filter
Displaying hooks found in version: jetpack.16.0apply_filters('wpcom_podcasting_enable_play_tracking') is found 1 times:
- /jetpack_vendor/automattic/jetpack-podcast/src/feed/class-customize-feed.php line 253
* * @param bool $enable Default true. * @param WP_Post|null $post The post being rendered. */ $enable = (bool) apply_filters( 'wpcom_podcasting_enable_play_tracking', true, $post_obj ); // Skip rewrite for externally hosted enclosures — the stats endpoint 404s anything that isn't a local attachment. $attachment_id = attachment_url_to_postid( $original_url ); if ( null !== $post_obj && $enable && $attachment_id > 0 ) { // `null` when the site isn't connected; passed through so the filter can still inject a value.