WP_Filesystem_Base::mkdir

Advertisement

Summery Summery

Creates a directory.

Syntax Syntax

WP_Filesystem_Base::mkdir( string $path, int|false $chmod = false, string|int $chown = false, string|int $chgrp = false )

Parameters Parameters

$path

(Required) Path for new directory.

$chmod

(Optional) The permissions as octal number (or false to skip chmod).

Default value: false

$chown

(Optional) A user name or number (or false to skip chown).

Default value: false

$chgrp

(Optional) A group name or number (or false to skip chgrp).

Default value: false

Return Return

(bool) True on success, false on failure.

Source Source

File: wp-admin/includes/class-wp-filesystem-base.php

	}

	/**

Advertisement

Changelog Changelog

Changelog
Version Description
2.5.0 Introduced.

Advertisement

Leave a Reply