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

(array) (Required) Image to use for the cover block. Should contain a media ID and image URL.


Top ↑

Return Return

(string) Block content.


Top ↑

Source Source

File: packages/woocommerce-admin/src/API/OnboardingTasks.php




Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.