@@ -70,6 +70,9 @@ |
||
| 70 | 70 | return 'found ' . count($hits); |
| 71 | 71 | } |
| 72 | 72 | |
| 73 | + /** |
|
| 74 | + * @param string $title |
|
| 75 | + */ |
|
| 73 | 76 | static function create_attachment( $image_url, $title, $caption_title, $caption_description ) { |
| 74 | 77 | // Get the contents of the picture |
| 75 | 78 | $response = wp_remote_get( $image_url ); |