Created
June 20, 2016 15:14
-
-
Save SErr0r/37830c75f84fb503f33fecee5fcf20a7 to your computer and use it in GitHub Desktop.
Get attached file size
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
filesize( get_attached_file( $attachment->ID ) ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment