Core Function
View Source on Trac ↗ wp_filesize()
wp_filesize( mixed $path ) Wrapper for PHP filesize with filters and casting the result as an integer.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $path string | Path to the file. Required |
Return Value
(int)
The size of the file in bytes, or 0 in the event of an error.
Function Information
Since Version
6.0.0
Source File
wp-includes/functions.php
Advertisement