Install iTerm 2
Download, unzip and drag to your Applications directory.
https://www.iterm2.com/downloads.html
Download, unzip and drag to your Applications directory.
https://www.iterm2.com/downloads.html
| <?php | |
| /** | |
| * This function uploads from a local file path. | |
| * To upload from a URL instead | |
| * @see: https://gist.github.com/RadGH/966f8c756c5e142a5f489e86e751eacb | |
| * | |
| * Example usage: Upload photo from file, display the attachment as as html <img> | |
| * $attachment_id = rs_upload_from_path( "/images/photo.png" ); | |
| * echo wp_get_attachment_image( $attachment_id, 'large' ); |