Archive | /wp-includes/functions.php RSS feed for this section

wp_upload_dir

Get an array containing the current upload directory’s path and url.Checks the ‘upload_path’ option, which should be from the web root folder, and if it isn’t empty it will be used. If it is empty, then the path will be ‘WP_CONTENT_DIR/uploads’. If the ‘UPLOADS’ constant is defined, then it will override the ‘upload_path’ option and ‘WP_CONTENT_DIR/uploads’ path.

4251

Continue reading

wp_upload_bits

Create a file in the upload folder with given content.If there is an error, then the key ‘error’ will exist with the error message. If success, then the key ‘file’ will have the unique file path, the ‘url’ key will have the link to the new file. and the ‘error’ key will be set to false.

4249

Continue reading

wp_unique_filename

Get a filename that is sanitized and unique for the given directory.If the filename is not unique, then a number will be added to the filename before the extension, and will continue adding numbers until the filename is unique.

4191

Continue reading