Plugin Directory

Changeset 2964163


Ignore:
Timestamp:
09/07/2023 02:26:48 PM (19 months ago)
Author:
davelopweb
Message:

ajout permissions callback

Location:
stn-save-to-nextcloud/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • stn-save-to-nextcloud/trunk/STN.php

    r2934646 r2964163  
    88 *  * Plugin URI: httsp://www.davelopweb.fr/
    99 * Description: Sauvegarde wordpress + Bdd mensuelle vers votre instance Nextcloud
    10  *  * Version: 2.3.1
     10 *  * Version: 2.3.3
    1111 * Author: Dave DELALLEAU
    1212 * Author URI: https://www.davelopweb.fr/#contact
     
    591591    }
    592592
     593    $allParam['NeedUpdate'] = 'noneed';
     594   
     595    $update_data = wp_get_update_data();
     596   
     597    if ($update_data['counts']['total'] > 0) {
     598       
     599        $allParam['NeedUpdate'] = 'need';
     600       
     601    };
     602   
     603    $allParam['test'] = $update_data;
     604   
    593605    return $allParam;
    594606};
     
    599611    'methods' => 'GET',
    600612    'callback' => 'all_user_param',
     613    'permission_callback' => '__return_true',
    601614    ) );
    602615} );
     
    660673        // Appelle la méthode "all_user_param"
    661674        'callback' => 'get_all_saves',
     675        'permission_callback' => '__return_true',
    662676    ) );
    663677} );
  • stn-save-to-nextcloud/trunk/readme.txt

    r2934646 r2964163  
    55Requires PHP: 7.3
    66Tested up to: 6.2
    7 Stable tag: 2.3.1
     7Stable tag: 2.3.3
    88License: GPLv2
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5151== Changelog ==
    5252
     53= 2.3.3 =
     54
     55Ajout 'permission_callback' en public les API
     56
     57= 2.3.1 =
     58
     59Ajout NeedUpdate dans l'API param
    5360
    5461= 2.3.1 =
Note: See TracChangeset for help on using the changeset viewer.