changes into code
<?php /** * Plugin Shortcode Class File. * * handels wordpress site global search accross posts, pages, cpt etc. * * @since 1.0.0 * @package Website_Search */ if (!defined('ABSPATH')) { exit; } class Website_Search_Shortcode { /** * Constructor. * * loads all the shortcode related dependencies, get search results * * @since 1.0.0 * @return void */ public function __construct() { add_shortcode('website_search', [$this, 'sdw_website_search_short_code_callback']); add_action('posts_search', [$this, 'sdw_get_taxonomy_meta_callback'], 10, 2); add_filter('template_include', [$this, 'sdw_load_website_search_template']); add_action('init', [$this, 'sdw_register_search_rewrite']); add_filter('query_vars', [$this, 'sdw_register_query_vars']); add_action('pre_get_posts', [$this, 'sdw_map_q_to_search']); } public function sdw_register_search_rewrite() { add_rewrite_rule( '^search/content/...