Plugin Directory

Changeset 2403754


Ignore:
Timestamp:
10/21/2020 06:12:32 AM (5 years ago)
Author:
roberarec
Message:

adding new changes

Location:
robera/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • robera/trunk/core/recommender-admin.php

    r2402000 r2403754  
    4848            return current_user_can('edit_others_posts');
    4949        };
     50        $allowAll = function () { return true; };
     51
    5052        register_rest_route(RECOMMENDER_PLUGIN_PREFIX . '/v1', '/settings', array(
    5153            'methods' => 'POST',
     
    5658        register_rest_route(RECOMMENDER_PLUGIN_PREFIX . '/v1', '/progress', array(
    5759            'methods' => 'GET',
    58             'callback' => array($this, 'progressPercent')
     60            'callback' => array($this, 'progressPercent'),
     61            'permission_callback' => $allowAll
    5962        ));
    6063    }
  • robera/trunk/core/recommender-plugin.php

    r2402000 r2403754  
    8484    public function restApis()
    8585    {
     86        $allowAll = function () { return true; };
     87
    8688        register_rest_route(RECOMMENDER_PLUGIN_PREFIX . '/v1', '/sync', array(
    8789            'methods' => 'GET',
    88             'callback' => array($this, 'syncData')
     90            'callback' => array($this, 'syncData'),
     91            'permission_callback' => $allowAll
    8992        ));
    9093    }
  • robera/trunk/readme.txt

    r2402000 r2403754  
    44License: GPLv2 or later
    55License URI: https://www.gnu.org/licenses/gpl-2.0.html
    6 Stable tag: 1.0.16
     6Stable tag: 1.0.17
    77Tested up to: 5.4.2
    88
  • robera/trunk/recommender.php

    r2402000 r2403754  
    1212 * Description:       This Plugins help you interact with your WooCommerce users smarter by recommend products and related-products to them according to their preferences.
    1313 * Text Domain:       robera-recommender
    14  * Version:           1.0.16
     14 * Version:           1.0.17
    1515 */
    1616
Note: See TracChangeset for help on using the changeset viewer.