Skip to content

Instantly share code, notes, and snippets.

View zaheer-bashir's full-sized avatar
🏠
Working from home

Zaheer Bashir zaheer-bashir

🏠
Working from home
View GitHub Profile
@zaheer-bashir
zaheer-bashir / add-feature-image-programmatically.php
Last active July 22, 2020 21:13
Add Feature image of post/product by using URL programmatically
/****
**** Add Feature Image
****/
$url = "apple.jpg";
$image_url = $url;
$url_array = explode('/', $url );
$image_name = $url_array[count($url_array)-1];
$ch = curl_init();