jetpack_stats_footer_amp_data

jetpack_stats_footer_amp_data

Hook Type: filter

See hook in core

Displaying hooks found in version: jetpack.14.0

apply_filters('jetpack_stats_footer_amp_data') is found 1 times:

  • /jetpack_vendor/automattic/jetpack-stats/src/class-tracking-pixel.php line 174
    		 * @since-jetpack 10.9
    		 *
    		 * @param array $data Array of options about the site and page you're on.
    		 */
    		$data = (array) apply_filters( 'jetpack_stats_footer_amp_data', $data );
    
    		$data['host'] = isset( $_SERVER['HTTP_HOST'] ) ? sanitize_text_field( wp_unslash( $_SERVER['HTTP_HOST'] ) ) : ''; // input var ok.
    		$data['rand'] = 'RANDOM'; // AMP placeholder.
    		$data['ref']  = 'DOCUMENT_REFERRER'; // AMP placeholder.
    		$data         = array_map( 'rawurlencode', $data );
    		$pixel_url    = add_query_arg( $data, 'https://pixel.wp.com/g.gif' );