Plugin Directory

Changeset 3139847


Ignore:
Timestamp:
08/22/2024 03:12:13 PM (16 months ago)
Author:
wpengine
Message:

Tagging version 0.2.55

Location:
atlas-search
Files:
64 added
10 deleted
28 edited
1 copied

Legend:

Unmodified
Added
Removed
  • atlas-search/tags/0.2.55/README.txt

    r3135416 r3139847  
    33Tested up to: 6.6
    44Requires PHP: 7.4
    5 Stable tag: 0.2.54
     5Stable tag: 0.2.55
    66License: GPLv2 or later
    77License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4848
    4949== Changelog ==
     50= 0.2.55 =
     51* **Fixed:** Multisite session issues.
     52* **Fixed:** WooCommerce loading issues.
     53* **Added:** Scaffolding Facets code.
     54
    5055= 0.2.54 =
    5156* **Added:** Experimental WooCommerce Support.
  • atlas-search/tags/0.2.55/atlas-search.php

    r3135416 r3139847  
    1616 * Plugin URI:        https://developers.wpengine.com/
    1717 * Description:       Searching WordPress data with WP Engine Smart Search.
    18  * Version:           0.2.54
     18 * Version:           0.2.55
    1919 * Author:            WP Engine
    2020 * Author URI:        https://wpengine.com/
     
    4141 * Rename this for your plugin and update it as you release new versions.
    4242 */
    43 define( 'WPE_SMART_SEARCH_VERSION', '0.2.54' );
     43define( 'WPE_SMART_SEARCH_VERSION', '0.2.55' );
    4444
    4545/**
  • atlas-search/tags/0.2.55/build/search-facet/block.json

    r3135416 r3139847  
    1111  "supports": {
    1212    "html": false,
    13     "interactivity": true,
     13    "interactivity": {
     14      "clientNavigation": true
     15    },
    1416    "align": [
    1517      "wide",
  • atlas-search/tags/0.2.55/build/search-facet/render.php

    r3135416 r3139847  
    4444    )
    4545);
     46
     47// Add initial state. This would be empty initially but other blocks can update this by merging the states together.
     48wp_interactivity_state(
     49    'wpengine-smart-search-facets__store',
     50    array(
     51        'filters' => array(
     52            'category_name' => 'uncategorized',
     53        ),
     54    )
     55);
     56
    4657?>
    4758
    4859<div <?php echo wp_kses_data( $wrapper_attributes ); ?>
    4960    data-wp-interactive='{ "namespace": "wpengine-smart-search-facets__store" }'>
    50     <form role="search" method="get" action="<?php echo esc_url( home_url( '/' ) ); ?>">
     61    <form role="search" method="get" data-wp-on--submit="actions.performSearch">
    5162        <?php if ( $attributes['hasLabel'] ) : ?>
    5263            <label for="<?php echo esc_attr( $input_id ); ?>" class="wpengine-smart-search-facet__label">
     
    6172        <div class="wpengine-smart-search-facet__fields">
    6273            <input type="search" id="<?php echo esc_attr( $input_id ); ?>" class="wpengine-smart-search-facet__field"
    63                 placeholder="<?php echo esc_attr( $attributes['placeholder'] ); ?>" name="s" />
    64             <button data-wp-on--click="actions.logClick" type="submit" class="wpengine-smart-search-facet__button"
     74                placeholder="<?php echo esc_attr( $attributes['placeholder'] ); ?>" name="s"
     75                data-wp-bind--value="state.searchValue" data-wp-on--input="actions.setSearchValue" />
     76            <button type="submit" class="wpengine-smart-search-facet__button" onclick=""
    6577                aria-label="<?php echo esc_attr__( 'Search', 'wpengine-smart-search' ); ?>">
    6678                Search
  • atlas-search/tags/0.2.55/build/search-facet/view.asset.php

    r3135416 r3139847  
    1 <?php return array('dependencies' => array('@wordpress/interactivity'), 'version' => 'b439cf5fb84b00f0a7f0', 'type' => 'module');
     1<?php return array('dependencies' => array('@wordpress/interactivity'), 'version' => 'ddbb6b7c32812b5c62f7', 'type' => 'module');
  • atlas-search/tags/0.2.55/build/search-facet/view.js

    r3135416 r3139847  
    1 import*as e from"@wordpress/interactivity";var r={d:(e,o)=>{for(var t in o)r.o(o,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},o:(e,r)=>Object.prototype.hasOwnProperty.call(e,r)};var o,t;(0,(o={store:()=>e.store},t={},r.d(t,o),t).store)("wpengine-smart-search-facets__store",{actions:{logClick:()=>{console.log("Search click!")}}});
     1import*as e from"@wordpress/interactivity";var t={d:(e,r)=>{for(var a in r)t.o(r,a)&&!t.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:r[a]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const r=(o={getElement:()=>e.getElement,store:()=>e.store},s={},t.d(s,o),s),a="wpengine-smart-search-facets__store",{state:n}=(0,r.store)(a,{state:{get allFilters(){return JSON.stringify(n.filters)}},actions:{updateFilter(e){let{filterName:t,value:r}=e;n.filters[t]=r},setSearchValue(){const{ref:e}=(0,r.getElement)(),{value:t}=e;n.searchValue=t},*performSearch(e){e.preventDefault();const t={...n.filters,s:n.searchValue};yield(async e=>{const t=`${window.location.origin}/`,r=new URL(t);Object.keys(e).forEach((t=>{void 0!==e[t]&&null!==e[t]&&r.searchParams.set(t,e[t])})),window.location.assign(r.toString())})(t)}}});var o,s;const{actions:i}=(0,r.store)(a,{actions:{initSearchFacet:function(){const e=function(){const e={};return new URLSearchParams(window.location.search).forEach(((t,r)=>{e[r]=t})),e}();for(const t in e)if(e[t]){const r=e[t];i.updateFilter({filterName:t,value:r})}}}});i.initSearchFacet();
  • atlas-search/tags/0.2.55/helper/admin-notice.php

    r2944647 r3139847  
    144144            require_once ABSPATH . 'wp-includes/pluggable.php';
    145145        }
     146
     147        if ( is_multisite() ) {
     148            ms_cookie_constants();
     149        }
     150
    146151        wp_cookie_constants();
    147152
  • atlas-search/tags/0.2.55/includes/smart-search-settings/build/asset-manifest.json

    r3135416 r3139847  
    22  "files": {
    33    "main.css": "/wp-content/plugins/atlas-search/includes/smart-search-settings/build/static/css/main.751d9a0b.css",
    4     "main.js": "/wp-content/plugins/atlas-search/includes/smart-search-settings/build/static/js/main.8b10e547.js",
     4    "main.js": "/wp-content/plugins/atlas-search/includes/smart-search-settings/build/static/js/main.cfff4ada.js",
    55    "static/media/wpengine-logo.svg": "/wp-content/plugins/atlas-search/includes/smart-search-settings/build/static/media/wpengine-logo.40f3a1215fbea4708a6a4bff9624fece.svg",
    66    "static/media/content-copy.svg": "/wp-content/plugins/atlas-search/includes/smart-search-settings/build/static/media/content-copy.e50f17791e757794684afc63d5d4cb00.svg",
     
    1818    "index.html": "/wp-content/plugins/atlas-search/includes/smart-search-settings/build/index.html",
    1919    "main.751d9a0b.css.map": "/wp-content/plugins/atlas-search/includes/smart-search-settings/build/static/css/main.751d9a0b.css.map",
    20     "main.8b10e547.js.map": "/wp-content/plugins/atlas-search/includes/smart-search-settings/build/static/js/main.8b10e547.js.map"
     20    "main.cfff4ada.js.map": "/wp-content/plugins/atlas-search/includes/smart-search-settings/build/static/js/main.cfff4ada.js.map"
    2121  },
    2222  "entrypoints": [
    2323    "static/css/main.751d9a0b.css",
    24     "static/js/main.8b10e547.js"
     24    "static/js/main.cfff4ada.js"
    2525  ]
    2626}
  • atlas-search/tags/0.2.55/includes/smart-search-settings/build/index.html

    r3135416 r3139847  
    1 <head><script defer="defer" src="/wp-content/plugins/atlas-search/includes/smart-search-settings/build/static/js/main.8b10e547.js"></script><link href="/wp-content/plugins/atlas-search/includes/smart-search-settings/build/static/css/main.751d9a0b.css" rel="stylesheet"></head>
     1<head><script defer="defer" src="/wp-content/plugins/atlas-search/includes/smart-search-settings/build/static/js/main.cfff4ada.js"></script><link href="/wp-content/plugins/atlas-search/includes/smart-search-settings/build/static/css/main.751d9a0b.css" rel="stylesheet"></head>
  • atlas-search/tags/0.2.55/src/blocks/blocks-callbacks.php

    r3135416 r3139847  
    77 */
    88class WPE_Atlas_Search_Facets_Callbacks {
     9
    910    private $loader;
    1011    public const SMART_SEARCH_BLOCKS_SUPPORT_ENABLED_OPTION = 'smart_search_blocks_support_enabled';
     
    2324            return;
    2425        }
     26
    2527        $blocks = array(
    2628            'search-facet',
     29            'dropdown-facet',
    2730        );
     31
    2832        foreach ( $blocks as $block ) {
    2933            // Go up two levels to the plugin root.
  • atlas-search/tags/0.2.55/src/blocks/search-facet/block.json

    r3135416 r3139847  
    1111  "supports": {
    1212    "html": false,
    13     "interactivity": true,
     13    "interactivity": { "clientNavigation": true },
    1414      "align": ["wide", "full"],
    1515      "anchor": true,
  • atlas-search/tags/0.2.55/src/blocks/search-facet/render.php

    r3135416 r3139847  
    4444    )
    4545);
     46
     47// Add initial state. This would be empty initially but other blocks can update this by merging the states together.
     48wp_interactivity_state(
     49    'wpengine-smart-search-facets__store',
     50    array(
     51        'filters' => array(
     52            'category_name' => 'uncategorized',
     53        ),
     54    )
     55);
     56
    4657?>
    4758
    4859<div <?php echo wp_kses_data( $wrapper_attributes ); ?>
    4960    data-wp-interactive='{ "namespace": "wpengine-smart-search-facets__store" }'>
    50     <form role="search" method="get" action="<?php echo esc_url( home_url( '/' ) ); ?>">
     61    <form role="search" method="get" data-wp-on--submit="actions.performSearch">
    5162        <?php if ( $attributes['hasLabel'] ) : ?>
    5263            <label for="<?php echo esc_attr( $input_id ); ?>" class="wpengine-smart-search-facet__label">
     
    6172        <div class="wpengine-smart-search-facet__fields">
    6273            <input type="search" id="<?php echo esc_attr( $input_id ); ?>" class="wpengine-smart-search-facet__field"
    63                 placeholder="<?php echo esc_attr( $attributes['placeholder'] ); ?>" name="s" />
    64             <button data-wp-on--click="actions.logClick" type="submit" class="wpengine-smart-search-facet__button"
     74                placeholder="<?php echo esc_attr( $attributes['placeholder'] ); ?>" name="s"
     75                data-wp-bind--value="state.searchValue" data-wp-on--input="actions.setSearchValue" />
     76            <button type="submit" class="wpengine-smart-search-facet__button" onclick=""
    6577                aria-label="<?php echo esc_attr__( 'Search', 'wpengine-smart-search' ); ?>">
    6678                Search
  • atlas-search/tags/0.2.55/src/blocks/search-facet/view.js

    r3135416 r3139847  
    2121 */
    2222import { store } from '@wordpress/interactivity';
     23import '../stores/facets.store';
     24import { config } from '../config';
     25import { getFiltersFromURL } from '../utils/getFiltersFromURL';
    2326
    24 store('wpengine-smart-search-facets__store', {
     27const { actions } = store(config.facetsStoreName, {
    2528  actions: {
    26     logClick: () => {
    27       console.log('Search click!');
     29    initSearchFacet: function () {
     30      const filters = getFiltersFromURL();
     31
     32      for (const key in filters) {
     33        if (filters[key]) {
     34          const value = filters[key];
     35          actions.updateFilter({ filterName: key, value });
     36        }
     37      }
    2838    },
    2939  },
    3040});
     41actions.initSearchFacet();
  • atlas-search/tags/0.2.55/src/support/woocommerce/fields.php

    r3135416 r3139847  
    1010const SMART_SEARCH_WOOCOMMERCE_SUPPORT_ENABLED_OPTION = 'smart_search_woocommerce_support_enabled';
    1111
    12 
    13 if ( ! class_exists( 'WooCommerce' ) ) {
    14     return;
    15 }
    1612
    1713add_action(
  • atlas-search/trunk/README.txt

    r3135416 r3139847  
    33Tested up to: 6.6
    44Requires PHP: 7.4
    5 Stable tag: 0.2.54
     5Stable tag: 0.2.55
    66License: GPLv2 or later
    77License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4848
    4949== Changelog ==
     50= 0.2.55 =
     51* **Fixed:** Multisite session issues.
     52* **Fixed:** WooCommerce loading issues.
     53* **Added:** Scaffolding Facets code.
     54
    5055= 0.2.54 =
    5156* **Added:** Experimental WooCommerce Support.
  • atlas-search/trunk/atlas-search.php

    r3135416 r3139847  
    1616 * Plugin URI:        https://developers.wpengine.com/
    1717 * Description:       Searching WordPress data with WP Engine Smart Search.
    18  * Version:           0.2.54
     18 * Version:           0.2.55
    1919 * Author:            WP Engine
    2020 * Author URI:        https://wpengine.com/
     
    4141 * Rename this for your plugin and update it as you release new versions.
    4242 */
    43 define( 'WPE_SMART_SEARCH_VERSION', '0.2.54' );
     43define( 'WPE_SMART_SEARCH_VERSION', '0.2.55' );
    4444
    4545/**
  • atlas-search/trunk/build/search-facet/block.json

    r3135416 r3139847  
    1111  "supports": {
    1212    "html": false,
    13     "interactivity": true,
     13    "interactivity": {
     14      "clientNavigation": true
     15    },
    1416    "align": [
    1517      "wide",
  • atlas-search/trunk/build/search-facet/render.php

    r3135416 r3139847  
    4444    )
    4545);
     46
     47// Add initial state. This would be empty initially but other blocks can update this by merging the states together.
     48wp_interactivity_state(
     49    'wpengine-smart-search-facets__store',
     50    array(
     51        'filters' => array(
     52            'category_name' => 'uncategorized',
     53        ),
     54    )
     55);
     56
    4657?>
    4758
    4859<div <?php echo wp_kses_data( $wrapper_attributes ); ?>
    4960    data-wp-interactive='{ "namespace": "wpengine-smart-search-facets__store" }'>
    50     <form role="search" method="get" action="<?php echo esc_url( home_url( '/' ) ); ?>">
     61    <form role="search" method="get" data-wp-on--submit="actions.performSearch">
    5162        <?php if ( $attributes['hasLabel'] ) : ?>
    5263            <label for="<?php echo esc_attr( $input_id ); ?>" class="wpengine-smart-search-facet__label">
     
    6172        <div class="wpengine-smart-search-facet__fields">
    6273            <input type="search" id="<?php echo esc_attr( $input_id ); ?>" class="wpengine-smart-search-facet__field"
    63                 placeholder="<?php echo esc_attr( $attributes['placeholder'] ); ?>" name="s" />
    64             <button data-wp-on--click="actions.logClick" type="submit" class="wpengine-smart-search-facet__button"
     74                placeholder="<?php echo esc_attr( $attributes['placeholder'] ); ?>" name="s"
     75                data-wp-bind--value="state.searchValue" data-wp-on--input="actions.setSearchValue" />
     76            <button type="submit" class="wpengine-smart-search-facet__button" onclick=""
    6577                aria-label="<?php echo esc_attr__( 'Search', 'wpengine-smart-search' ); ?>">
    6678                Search
  • atlas-search/trunk/build/search-facet/view.asset.php

    r3135416 r3139847  
    1 <?php return array('dependencies' => array('@wordpress/interactivity'), 'version' => 'b439cf5fb84b00f0a7f0', 'type' => 'module');
     1<?php return array('dependencies' => array('@wordpress/interactivity'), 'version' => 'ddbb6b7c32812b5c62f7', 'type' => 'module');
  • atlas-search/trunk/build/search-facet/view.js

    r3135416 r3139847  
    1 import*as e from"@wordpress/interactivity";var r={d:(e,o)=>{for(var t in o)r.o(o,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},o:(e,r)=>Object.prototype.hasOwnProperty.call(e,r)};var o,t;(0,(o={store:()=>e.store},t={},r.d(t,o),t).store)("wpengine-smart-search-facets__store",{actions:{logClick:()=>{console.log("Search click!")}}});
     1import*as e from"@wordpress/interactivity";var t={d:(e,r)=>{for(var a in r)t.o(r,a)&&!t.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:r[a]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const r=(o={getElement:()=>e.getElement,store:()=>e.store},s={},t.d(s,o),s),a="wpengine-smart-search-facets__store",{state:n}=(0,r.store)(a,{state:{get allFilters(){return JSON.stringify(n.filters)}},actions:{updateFilter(e){let{filterName:t,value:r}=e;n.filters[t]=r},setSearchValue(){const{ref:e}=(0,r.getElement)(),{value:t}=e;n.searchValue=t},*performSearch(e){e.preventDefault();const t={...n.filters,s:n.searchValue};yield(async e=>{const t=`${window.location.origin}/`,r=new URL(t);Object.keys(e).forEach((t=>{void 0!==e[t]&&null!==e[t]&&r.searchParams.set(t,e[t])})),window.location.assign(r.toString())})(t)}}});var o,s;const{actions:i}=(0,r.store)(a,{actions:{initSearchFacet:function(){const e=function(){const e={};return new URLSearchParams(window.location.search).forEach(((t,r)=>{e[r]=t})),e}();for(const t in e)if(e[t]){const r=e[t];i.updateFilter({filterName:t,value:r})}}}});i.initSearchFacet();
  • atlas-search/trunk/helper/admin-notice.php

    r2944647 r3139847  
    144144            require_once ABSPATH . 'wp-includes/pluggable.php';
    145145        }
     146
     147        if ( is_multisite() ) {
     148            ms_cookie_constants();
     149        }
     150
    146151        wp_cookie_constants();
    147152
  • atlas-search/trunk/includes/smart-search-settings/build/asset-manifest.json

    r3135416 r3139847  
    22  "files": {
    33    "main.css": "/wp-content/plugins/atlas-search/includes/smart-search-settings/build/static/css/main.751d9a0b.css",
    4     "main.js": "/wp-content/plugins/atlas-search/includes/smart-search-settings/build/static/js/main.8b10e547.js",
     4    "main.js": "/wp-content/plugins/atlas-search/includes/smart-search-settings/build/static/js/main.cfff4ada.js",
    55    "static/media/wpengine-logo.svg": "/wp-content/plugins/atlas-search/includes/smart-search-settings/build/static/media/wpengine-logo.40f3a1215fbea4708a6a4bff9624fece.svg",
    66    "static/media/content-copy.svg": "/wp-content/plugins/atlas-search/includes/smart-search-settings/build/static/media/content-copy.e50f17791e757794684afc63d5d4cb00.svg",
     
    1818    "index.html": "/wp-content/plugins/atlas-search/includes/smart-search-settings/build/index.html",
    1919    "main.751d9a0b.css.map": "/wp-content/plugins/atlas-search/includes/smart-search-settings/build/static/css/main.751d9a0b.css.map",
    20     "main.8b10e547.js.map": "/wp-content/plugins/atlas-search/includes/smart-search-settings/build/static/js/main.8b10e547.js.map"
     20    "main.cfff4ada.js.map": "/wp-content/plugins/atlas-search/includes/smart-search-settings/build/static/js/main.cfff4ada.js.map"
    2121  },
    2222  "entrypoints": [
    2323    "static/css/main.751d9a0b.css",
    24     "static/js/main.8b10e547.js"
     24    "static/js/main.cfff4ada.js"
    2525  ]
    2626}
  • atlas-search/trunk/includes/smart-search-settings/build/index.html

    r3135416 r3139847  
    1 <head><script defer="defer" src="/wp-content/plugins/atlas-search/includes/smart-search-settings/build/static/js/main.8b10e547.js"></script><link href="/wp-content/plugins/atlas-search/includes/smart-search-settings/build/static/css/main.751d9a0b.css" rel="stylesheet"></head>
     1<head><script defer="defer" src="/wp-content/plugins/atlas-search/includes/smart-search-settings/build/static/js/main.cfff4ada.js"></script><link href="/wp-content/plugins/atlas-search/includes/smart-search-settings/build/static/css/main.751d9a0b.css" rel="stylesheet"></head>
  • atlas-search/trunk/src/blocks/blocks-callbacks.php

    r3135416 r3139847  
    77 */
    88class WPE_Atlas_Search_Facets_Callbacks {
     9
    910    private $loader;
    1011    public const SMART_SEARCH_BLOCKS_SUPPORT_ENABLED_OPTION = 'smart_search_blocks_support_enabled';
     
    2324            return;
    2425        }
     26
    2527        $blocks = array(
    2628            'search-facet',
     29            'dropdown-facet',
    2730        );
     31
    2832        foreach ( $blocks as $block ) {
    2933            // Go up two levels to the plugin root.
  • atlas-search/trunk/src/blocks/search-facet/block.json

    r3135416 r3139847  
    1111  "supports": {
    1212    "html": false,
    13     "interactivity": true,
     13    "interactivity": { "clientNavigation": true },
    1414      "align": ["wide", "full"],
    1515      "anchor": true,
  • atlas-search/trunk/src/blocks/search-facet/render.php

    r3135416 r3139847  
    4444    )
    4545);
     46
     47// Add initial state. This would be empty initially but other blocks can update this by merging the states together.
     48wp_interactivity_state(
     49    'wpengine-smart-search-facets__store',
     50    array(
     51        'filters' => array(
     52            'category_name' => 'uncategorized',
     53        ),
     54    )
     55);
     56
    4657?>
    4758
    4859<div <?php echo wp_kses_data( $wrapper_attributes ); ?>
    4960    data-wp-interactive='{ "namespace": "wpengine-smart-search-facets__store" }'>
    50     <form role="search" method="get" action="<?php echo esc_url( home_url( '/' ) ); ?>">
     61    <form role="search" method="get" data-wp-on--submit="actions.performSearch">
    5162        <?php if ( $attributes['hasLabel'] ) : ?>
    5263            <label for="<?php echo esc_attr( $input_id ); ?>" class="wpengine-smart-search-facet__label">
     
    6172        <div class="wpengine-smart-search-facet__fields">
    6273            <input type="search" id="<?php echo esc_attr( $input_id ); ?>" class="wpengine-smart-search-facet__field"
    63                 placeholder="<?php echo esc_attr( $attributes['placeholder'] ); ?>" name="s" />
    64             <button data-wp-on--click="actions.logClick" type="submit" class="wpengine-smart-search-facet__button"
     74                placeholder="<?php echo esc_attr( $attributes['placeholder'] ); ?>" name="s"
     75                data-wp-bind--value="state.searchValue" data-wp-on--input="actions.setSearchValue" />
     76            <button type="submit" class="wpengine-smart-search-facet__button" onclick=""
    6577                aria-label="<?php echo esc_attr__( 'Search', 'wpengine-smart-search' ); ?>">
    6678                Search
  • atlas-search/trunk/src/blocks/search-facet/view.js

    r3135416 r3139847  
    2121 */
    2222import { store } from '@wordpress/interactivity';
     23import '../stores/facets.store';
     24import { config } from '../config';
     25import { getFiltersFromURL } from '../utils/getFiltersFromURL';
    2326
    24 store('wpengine-smart-search-facets__store', {
     27const { actions } = store(config.facetsStoreName, {
    2528  actions: {
    26     logClick: () => {
    27       console.log('Search click!');
     29    initSearchFacet: function () {
     30      const filters = getFiltersFromURL();
     31
     32      for (const key in filters) {
     33        if (filters[key]) {
     34          const value = filters[key];
     35          actions.updateFilter({ filterName: key, value });
     36        }
     37      }
    2838    },
    2939  },
    3040});
     41actions.initSearchFacet();
  • atlas-search/trunk/src/support/woocommerce/fields.php

    r3135416 r3139847  
    1010const SMART_SEARCH_WOOCOMMERCE_SUPPORT_ENABLED_OPTION = 'smart_search_woocommerce_support_enabled';
    1111
    12 
    13 if ( ! class_exists( 'WooCommerce' ) ) {
    14     return;
    15 }
    1612
    1713add_action(
Note: See TracChangeset for help on using the changeset viewer.