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_media_block( array $image, string $align = 'left' )

Returns a valid media block with an image, if one exists, or a uninitialized media block the user can set.


Description Description


Parameters Parameters

$image

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

$align

(Optional) If the image should be aligned to the left or right.

Default value: 'left'


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.