PUM_Ajax::serve_pixel()

Creates and returns a 1×1 tracking gif to the browser.


Description Description


Source Source

File: classes/Ajax.php

	public static function serve_pixel() {
		$gif = PUM_Ajax::get_file( POPMAKE_DIR . 'assets/images/beacon.gif' );
		header( 'Content-Type: image/gif' );
		header( 'Content-Length: ' . strlen( $gif ) );
		exit( $gif );
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.