search_theme example

if ( ! empty( $_REQUEST['s'] ) ) {
            $this->search_terms = array_unique( array_filter( array_map( 'trim', explode( ',', strtolower( wp_unslash( $_REQUEST['s'] ) ) ) ) ) );
        }

        if ( ! empty( $_REQUEST['features'] ) ) {
            $this->features = $_REQUEST['features'];
        }

        if ( $this->search_terms || $this->features ) {
            foreach ( $themes as $key => $theme ) {
                if ( ! $this->search_theme( $theme ) ) {
                    unset( $themes[ $key ] );
                }
            }
        }

        unset( $themes[ get_option( 'stylesheet' ) ] );
        WP_Theme::sort_by_name( $themes );

        $per_page = 36;
        $page     = $this->get_pagenum();

        
Home | Imprint | This part of the site doesn't use cookies.