WordPress at Your Fingertips

path (directory folder) (tag)

get_attached_file()

Retrieve attached file path based on attachment ID.

get_home_path()

Gets the absolute filesystem path to the root of the WordPress installation.

get_parent_theme_file_path()

Retrieves the path of a file in the parent theme.

get_temp_dir()

Determine a writable directory for temporary files.

get_template()

Retrieve name of the current theme.

get_theme_root()

Retrieve path to themes directory.

path_join()

Join two filesystem paths together. If the second parameter is an absolute path (starts with a slash), then only it will be returned.

plugin_dir_path()

Get the filesystem directory path (with trailing slash) for the plugin __FILE__ passed in.

search_theme_directories()

Search all registered theme directories for complete and valid themes.

wp_basename()

i18n friendly version of basename()

wp_get_upload_dir()

Retrieves uploads directory information.

wp_normalize_path()

Normalize a filesystem path.

wp_tempnam()

Returns a filename of a Temporary unique file. Please note that the calling function must unlink() this itself.

wp_upload_dir()

Get an array containing the current upload directory's path and url.