function _search_plugins_filter_callback($plugin) {}


  • $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;


			return false;



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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

<span>%d</span> bloggers like this: