Plugin Directory

Changeset 3289645


Ignore:
Timestamp:
05/08/2025 09:02:00 AM (11 months ago)
Author:
leadinfo
Message:

Plugin release

Location:
leadinfo/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • leadinfo/trunk/includes/api/rest.php

    r3289626 r3289645  
    99// Init tracker_code update endpoint
    1010add_action('rest_api_init', function () {
    11     if (!current_user_can('manage_options')) {
    12         return;
    13     }
    14 
    1511    register_rest_route('/leadinfo/v1', '/tracker_code', array(
    1612        'methods' => 'POST',
    1713        'callback' => 'add_leadinfo_tracker_code',
     14        'permission_callback' => function () {
     15            return current_user_can('manage_options');
     16        }
    1817    ));
    1918});
  • leadinfo/trunk/leadinfo.php

    r3289628 r3289645  
    44 * Plugin URI: https://wordpress.org/plugins/leadinfo/
    55 * Description: Leadinfo Plugin
    6  * Version: 2.1.1
     6 * Version: 2.1.2
    77 * Author: Leadinfo
    88 * Author URI: https://www.leadinfo.com/
  • leadinfo/trunk/readme.txt

    r3289628 r3289645  
    44Requires at least: 3.0.1
    55Tested up to: 6.4.3
    6 Stable tag: 2.1.1
     6Stable tag: 2.1.2
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.