PHP code example of kaiseki / wp-menu-quick-search-title-only

1. Go to this page and download the library: Download kaiseki/wp-menu-quick-search-title-only 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/ */

    

kaiseki / wp-menu-quick-search-title-only example snippets


use Kaiseki\WordPress\MenuQuickSearchTitleOnly\ConfigProvider;

return (new ConfigProvider())();

return [
    'menu_quick_search_title_only' => [
        // Post types whose quick-search should be title-only. Empty means
        // "apply to every quick-search request".
        'post_types'     => ['post', 'page'],
        // Maximum number of results returned by the quick search.
        'posts_per_page' => 20,
    ],
];