Append the Widgets menu to the themes main menu.
4263
Continue readingSaves and restores user interface settings stored in a cookie.Checks if the current user-settings cookie is updated and stores it. When no cookie exists (different browser used), adds the last saved cookie restoring the settings.
4253
Continue readingGet 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 readingCreate 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 readingGet 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