PHP code example of bojaghi / search-meta
1. Go to this page and download the library: Download bojaghi/search-meta 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/ */
bojaghi / search-meta example snippets
$query = new WP_Query(
[
'post_type' => 'post',
/* ... */
's' => 'foo',
'search_meta' => [ /* ... */ ],
]
);
new SearchMeta();
new SearchMeta([ /* ... */]);
// 또는
new SearchMeta('/path/to/setup');
if (!defined('ABSPATH')) {
exit;
}
return [
'postmeta_alias' => '_smeta',
];