|wp-includes/capabilities.php: current_user_can()|| |
Whether the current user has a specific capability.
|wp-includes/formatting.php: wp_unslash()|| |
Remove slashes from a string or array of strings.
|wp-includes/pluggable.php: check_ajax_referer()|| |
Verifies the Ajax request to prevent processing requests external of the blog.
|wp-includes/functions.php: wp_send_json_error()|| |
Send a JSON response back to an Ajax request, indicating failure.
|wp-includes/functions.php: wp_send_json_success()|| |
Send a JSON response back to an Ajax request, indicating success.
|wp-includes/user.php: update_user_meta()|| |
Update user meta field based on user ID.
|wp-includes/user.php: get_current_user_id()|| |
Get the current user’s ID