wp_filesize


wp_filesize ( $path )

Parameters:
  • (string) path Path to the file.
Links:
Returns:
  • (int) The size of the file in bytes, or 0 in the event of an error.
Defined at:

Description

Wrapper for PHP filesize with filters and casting the result as an integer.

Related Functions

wp_filesystem, wp_getimagesize, wp_timezone, wp_delete_site, wp_filter_kses

Top Google Results

User discussions

wpseek mobile