Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
OnboardingTasks::sideload_homepage_images( int $post_id, int $number_of_images )
Uploads a number of images to a homepage template, depending on the selected industry from the profile wizard.
Description Description
Parameters Parameters
- $post_id
-
(Required) ID of the homepage template.
- $number_of_images
-
(Required) The number of images that should be sideloaded (depending on how many media slots are in the template).
Return Return
(array) An array of images that have been attached to the post.
Source Source
File: packages/woocommerce-admin/src/API/OnboardingTasks.php