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::get_homepage_cover_block( array $image )
Returns a valid cover block with an image, if one exists, or background as a fallback.
Description Description
Parameters Parameters
- $image
-
(Required) Image to use for the cover block. Should contain a media ID and image URL.
Return Return
(string) Block content.
Source Source
File: packages/woocommerce-admin/src/API/OnboardingTasks.php