Tags » Custom Code

Image Upload from URL in wordpress.

require_once( ABSPATH . ‘wp-admin/includes/file.php’ );

//$postId = $_POST[‘post_id’]
//$url = $_POST[‘image_url’];

$postId = 2;
$url = “https://www.elegantthemes.com/blog/wp-content/uploads/2017/07/wordpress-lorem-ipsum.png”;

$timeout_seconds = 5;

// Download file to temp dir… 175 more words


Learning New Things Makes a Superstar

Or, at least learning how to apply a custom coded email signature to Outlook’s stubborn signature editor makes me “basically” a superstar, according to their social media representatives. 351 more words