You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a start for you:
In includes/class-admin.php public function plugin_page() { echo '<div class="wrap"><div id="vue-admin-app"></div></div>'; wp_localize_script( 'baseplugin-admin', 'wpApAdminSettings', array( 'root' => esc_url_raw( rest_url() ), 'nonce' => wp_create_nonce( 'wp_rest_vue_admin_app_or_whatever' ) ) ); }
Very Good idea!
Just, I don't konw how to check nonce in ajax api.
wp_verify_nonce($_POST['nonce_check'],'action_name');
Any Good idea please?
The text was updated successfully, but these errors were encountered: