WP_MS_Themes_List_Table::_search_callback

Advertisement

Syntax Syntax

WP_MS_Themes_List_Table::_search_callback( WP_Theme $theme )

Parameters Parameters

$theme

(Required)

Return Return

(bool)

Source Source

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

				if ( $enabled ) {
					$themes['auto-update-enabled'][ $key ] = $theme;
				} else {
					$themes['auto-update-disabled'][ $key ] = $theme;
				}
			}
		}

		if ( $s ) {
			$status           = 'search';
			$themes['search'] = array_filter( array_merge( $themes['all'], $themes['broken'] ), array( $this, '_search_callback' ) );
		}

		$totals = array();
		foreach ( $themes as $type => $list ) {
			$totals[ $type ] = count( $list );
		}

		if ( empty( $themes[ $status ] ) && ! in_array( $status, array( 'all', 'search' ), true ) ) {
			$status = 'all';
		}

Advertisement

Advertisement

Leave a Reply