| Server IP : 162.253.224.18 / Your IP : 216.73.216.135 Web Server : Apache System : Linux s18.infinitysrv.com 3.10.0-962.3.2.lve1.5.89.el7.x86_64 #1 SMP Thu Jul 9 15:55:31 UTC 2026 x86_64 User : dejavumk ( 1184) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/dejavumk/perbec.com/wp-content/plugins/better-search/ |
Upload File : |
<?php
/**
* Better Search is a plugin that will replace the default WordPress search page
* with highly relevant search results improving your visitors search experience.
*
* @package Better_Search
* @author Ajay D'Souza <me@ajaydsouza.com>
* @license GPL-2.0+
* @link https://webberzone.com
* @copyright 2009-2024 Ajay D'Souza
*
* @wordpress-plugin
* Plugin Name: Better Search
* Plugin URI: https://webberzone.com/plugins/better-search/
* Description: Replace the default WordPress search with a contextual search. Search results are sorted by relevancy ensuring a better visitor search experience.
* Version: 3.3.0
* Author: WebberZone
* Author URI: https://webberzone.com/
* Text Domain: better-search
* License: GPL-2.0+
* License URI: https://www.gnu.org/licenses/gpl-2.0.txt
* Domain Path: /languages
* GitHub Plugin URI: https://github.com/WebberZone/better-search/
*/
namespace WebberZone\Better_Search;
if ( ! defined( 'WPINC' ) ) {
die;
}
/**
* Holds the version of Better Search.
*
* @since 2.9.3
*/
define( 'BETTER_SEARCH_VERSION', '3.3.0' );
/**
* Holds the filesystem directory path (with trailing slash) for Better Search
*
* @since 2.2.0
*/
define( 'BETTER_SEARCH_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
/**
* Holds the filesystem directory path (with trailing slash) for Better Search
*
* @since 2.2.0
*/
define( 'BETTER_SEARCH_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
/**
* Holds the filesystem directory path (with trailing slash) for Better Search
*
* @since 2.2.0
*/
define( 'BETTER_SEARCH_PLUGIN_FILE', __FILE__ );
/**
* Holds the version of Better Search.
*
* @since 3.3.0
*/
define( 'BETTER_SEARCH_DB_VERSION', '2.0' );
// Load the autoloader.
require_once BETTER_SEARCH_PLUGIN_DIR . 'includes/autoloader.php';
/**
* The code that runs during plugin activation.
*
* @since 3.3.0
*
* @param bool $network_wide Whether the plugin is being activated network-wide.
*/
function activate_bsearch( $network_wide ) {
Admin\Activator::activation_hook( $network_wide );
}
register_activation_hook( __FILE__, __NAMESPACE__ . '\activate_bsearch' );
/**
* The main function responsible for returning the one true WebberZone Snippetz instance to functions everywhere.
*
* @since 3.3.0
*/
function load_bsearch() {
Main::get_instance();
}
add_action( 'plugins_loaded', __NAMESPACE__ . '\load_bsearch' );
/*
*----------------------------------------------------------------------------
* Include files
*----------------------------------------------------------------------------
*/
require_once BETTER_SEARCH_PLUGIN_DIR . 'includes/options-api.php';
require_once BETTER_SEARCH_PLUGIN_DIR . 'includes/class-better-search.php';
require_once BETTER_SEARCH_PLUGIN_DIR . 'includes/class-better-search-query.php';
require_once BETTER_SEARCH_PLUGIN_DIR . 'includes/functions.php';
require_once BETTER_SEARCH_PLUGIN_DIR . 'includes/general-template.php';
require_once BETTER_SEARCH_PLUGIN_DIR . 'includes/heatmap.php';
/**
* Declare $bsearch_settings global so that it can be accessed in every function
*
* @since 1.3
*/
global $bsearch_settings;
$bsearch_settings = bsearch_get_settings();