Tribe__PUE__Checker::add_result_filter( callback $callback )

Register a callback for filtering the plugin info retrieved from the external API.

The callback function should take two arguments. If the plugin info was retrieved successfully, the first argument passed will be an instance of TribePUEPlugin_Info. Otherwise, it will be NULL. The second argument will be the corresponding return value of wp_remote_get (see WP docs for details).

The callback function should return a new or modified instance of TribePUEPlugin_Info or NULL.


Parameters

$callback

(callback) (Required) The callback function.


Top ↑

Source

File: src/Tribe/PUE/Checker.php

		public function add_result_filter( $callback ) {
			add_filter( 'tribe_puc_request_info_result-' . $this->get_slug(), $callback, 10, 2 );
		}