PHP code example of soderlind / loupe-search
1. Go to this page and download the library: Download soderlind/loupe-search library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
soderlind / loupe-search example snippets
add_filter( 'loupe_search_post_types', function ( array $post_types ): array {
$post_types[] = 'book';
return $post_types;
} );