|wp-includes/media.php: attachment_url_to_postid()|| |
Tries to convert an attachment URL into a post ID.
|wp-includes/capabilities.php: current_user_can()|| |
Returns whether the current user has the specified capability.
|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/post.php: set_post_thumbnail()|| |
Sets the post thumbnail (featured image) for the given post.