wip nonce actually dont work
This commit is contained in:
@@ -19,10 +19,22 @@ class Fbpatch {
|
||||
|
||||
const SLUG_TOOGLE_ADMIN_MENU = ['_name'=>'toogle_admin_menu_url_fbpatch', 'toggle'=>'toggle', 'show'=>'show', 'hide'=>'hide'];
|
||||
const OPTION_TOGGLE_MENU = ['_name'=>'toggle_admin_menu_option_fbpatch', 'show'=>'show', 'hide'=>'hide'];
|
||||
const URL_BASE_REST_ROUTE = 'fbpatch_plugin/api/v1'; // for routes, in php/paypal/routes.php && php/admin_modif_prof.php
|
||||
const NONCE = ['_name'=>'nonce_name', '_action'=>'action_name'];
|
||||
|
||||
//private static $_is_
|
||||
private static $_patchs = ['calculations', 'hide_show'];
|
||||
// const PATCH_CALCULATIONS = ['_name'=>'calculations', 'title'=>'calculations title', '_description'=>'description---'];
|
||||
// const PATCH_HIDE_SHOW = ['_name'=>'hide_chow', '_title'=>'hide/show title', '_description'=>'description...'];
|
||||
|
||||
private static function set_patchs() {
|
||||
foreach (self::$_patchs as $patch) {
|
||||
error_log("patch : " . $patch);
|
||||
}
|
||||
}
|
||||
public static function get_patchs() {
|
||||
self::set_patchs();
|
||||
}
|
||||
public static function update_patchs($query) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user