WP_Plugins_List_Table::_search_callback() WordPress Method
The WP_Plugins_List_Table::_search_callback() method is used to search for plugins based on a user-specified search string. The search string is compared against the plugin names and descriptions, and any plugins that match the search string are returned in a list. The search string is case-insensitive, so a search for "foo" will return any plugin that has "foo" in its name or description.
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; }
Expand full source codeCollapse full source codeView on TracView on GitHub