WP_Plugins_List_Table::_search_callback( $plugin ): bool

In this article

Callback to filter plugins by a search term.

Parameters

mixed> $plugin Plugin data array to check against the search term.

Return

bool True if the plugin matches the search term, false otherwise.

Source

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;
}

Changelog

VersionDescription
3.1.0Introduced.

User Contributed Notes

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