Support » Plugin: Featured Image by URL » Importing URLs via PHP

  • Resolved Screenload

    (@screenload)


    Hey guys, I’m trying to import URLs to the gallery in woocommerce and thumbnail via PHP!
    Is there any function I can use or could someone explain the database scheme to me?

    a:3:{i:0;a:3:{s:3:"url";s:55:"https://www.petcentric.com/media/356965/01_cathello.jpg";s:5:"width";i:4096;s:6:"height";i:2466;}i:1;a:3:{s:3:"url";s:55:"https://www.petcentric.com/media/356965/01_cathello.jpg";s:5:"width";i:4096;s:6:"height";i:2466;}i:2;a:3:{s:3:"url";s:55:"https://www.petcentric.com/media/356965/01_cathello.jpg";s:5:"width";i:4096;s:6:"height";i:2466;}}
    what 😀

Viewing 1 replies (of 1 total)
  • Plugin Author Dharmesh Patel

    (@dharm1025)

    Hello @screenload,

    Thanks for reaching out.

    WooCommerce needs image width and height for display image in lightbox. so we are storing it with image URLs. but you can import only image URL string into featured image field and comma-separated image URLs for the gallery fields. the plugin will take care of all other things.

    hope this will help you.

    Thanks,
    Dharmesh Patel

Viewing 1 replies (of 1 total)
  • The topic ‘Importing URLs via PHP’ is closed to new replies.