This file contains 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( "mwai_context_search", 'my_web_search', 10, 3 ); | |
function my_web_search( $context, $query, $options = [] ) { | |
// If the context is already provided, return it as is. | |
if ( ! empty( $context ) ) { | |
return $context; | |
} |