_search_plugins_filter_callback

Definition:
function _search_plugins_filter_callback($plugin) {}

Parameters

  • $plugin

Source code

	function _search_plugins_filter_callback($plugin) {

		static $term;

		if ( is_null($term) )

			$term = stripslashes($_GET['s']);

		if ( 	stripos($plugin['Name'], $term) !== false ||

				stripos($plugin['Description'], $term) !== false ||

				stripos($plugin['Author'], $term) !== false ||

				stripos($plugin['PluginURI'], $term) !== false ||

				stripos($plugin['AuthorURI'], $term) !== false ||

				stripos($plugin['Version'], $term) !== false )

			return true;

		else

			return false;

	}

4369

No comments yet... Be the first to leave a reply!

Leave a comment