Function Reference/wp mkdir p
Description
Recursive directory creation based on full path.
Will attempt to set permissions on folders.
Usage
<?php wp_mkdir_p( $target ) ?>
Parameters
- $target
- (string) (required) Full path to attempt to create.
- Default: None
Return Values
- (boolean)
- Whether the path was created or not. True if path already exists.
Examples
Notes
Change Log
Since: 2.0.1
Source File
wp_mkdir_p() is located in wp-includes/functions.php.
Related