首页 WordPress函数大全 get_dirsize()

get_dirsize()

2020-05-01 / 5408阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

get_dirsize( string $directory, int $max_execution_time = null )

Get the size of a directory.

描述

A helper function that is used primarily to check whether a blog has exceeded its allowed upload space.

参数

$directory

(string)
(Required)
Full path of a directory.

$max_execution_time

(int)
(Optional)
Maximum time to run before giving up. In seconds. The timeout is global and is measured from the moment WordPress started to load.

Default value: null

返回

(int|false|null) Size in bytes if a valid directory. False if not. Null if timeout.

大家谈论
    我的见解