Custom addon – multiple image import
-
I have written an XML addon which takes a single image from my feed using your documentation example and it works great!:
$my_addon->add_field( ‘property_featured_img’, ‘Property Featured Image’, ‘image’ );
I can extract the attachment_id for my plugin perfectly using this:
$attachment_id = $data[‘property_featured_img’][‘attachment_id’];
I would now like to import multiple images, but am not clear how to extract the attachment_id number from each one using the example you give below.
$my_addon->import_images( ‘property_images’, ‘Property Images’ );
Ideally, I would like an array of attachment_id values of the images.
Thank you.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Custom addon – multiple image import’ is closed to new replies.