Function Arguments Return Description Version Path

wp_embed_handler_youtube

(array) $matches
(array) $attr
(string) $url
(array) $rawattr
(string) The embed HTML.

YouTube embed handler callback.

4.0 wp-includes / media.php

wp_get_all_sessions

(array) Array of sessions.

Retrieve a list of sessions for the current user.

4.0 wp-includes / user.php

wp_get_session_token

(string) Token.

Retrieve the current session token from the logged_in cookie.

4.0 wp-includes / user.php

wp_spaces_regexp

(string) The spaces regexp.

Returns the regexp for common whitespace characters.

4.0 wp-includes / formatting.php

wp_validate_boolean

(mixed) $var
(boolean) Whether the value is validated.

Alternative to filter_var( $var, FILTER_VALIDATE_BOOLEAN ).

4.0 wp-includes / functions.php

_wp_handle_upload

(array) $file
(array) $overrides
(string) $time
(string) $action
(array) On success, returns an associative array of file attributes. On failure, returns $overrides['upload_error_handler'](&$file, $message ) or array( 'error'=>$message ).

Handle PHP uploads in WordPress, sanitizing file names, checking extensions for mime type, and moving the file to the appropriate directory within the uploads directory.

4.0 wp-admin / includes / file.php