Technical Docs

Search Documentation

Function: tribe_upload_image

* @param string|int $image The path to an image file, an image URL or an attachment post ID.

Located at src/functions/utils.php (Line: 307)

Parameters summary

() $image

Return value summary

(int) The attachment post ID if the uploading and attachment is successful or the ID refers to an attachment; <code>false</code> otherwise.
(bool) The attachment post ID if the uploading and attachment is successful or the ID refers to an attachment; <code>false</code> otherwise.

Examples

int|bool tribe_upload_image ( $image )