W3cubDocs

/WordPress

WP_Plugins_List_Table::_search_callback( array $plugin )

Parameters

$plugin

(array) (Required)

Return

(bool)

Source

File: wp-admin/includes/class-wp-plugins-list-table.php

public function _search_callback( $plugin ) {
		global $s;

		foreach ( $plugin as $value ) {
			if ( is_string( $value ) && false !== stripos( strip_tags( $value ), urldecode( $s ) ) ) {
				return true;
			}
		}

		return false;
	}

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_plugins_list_table/_search_callback