This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wordpress: | |
endpoint: 'http://local.wordpress.dev/wp-json' | |
cacheLimit: 3600000 # 1000ms * 60s * 60m = 1hr |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
let filterElasticsearchResponse = false; | |
let searchTerm; | |
$.ajaxSetup({ | |
beforeSend: function(xhr, settings) { | |
if( settings.url == window.epas.endpointUrl) { | |
filterElasticsearchResponse = true; | |
searchTerm = settings.headers['EP-Search-Term']; | |
} | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'ep_prepare_meta_allowed_protected_keys', 'ep_add_priority_meta', 10, 2 ); | |
function ep_add_priority_meta( $keys, $post ) { | |
$keys[] = '_priority'; | |
return $keys; | |
} |
OlderNewer