Sure. You could hook the save_post
action, use WP_Http
class to download it and then insert it as an attachment using wp_insert_attachment
and wp_update_attachment_metadata()
.
It’s not trivial but shouldn’t be that hard.
Sure. You could hook the save_post
action, use WP_Http
class to download it and then insert it as an attachment using wp_insert_attachment
and wp_update_attachment_metadata()
.
It’s not trivial but shouldn’t be that hard.