OnboardingTasks
Onboarding Tasks Controller.
Description Description
Source Source
File: packages/woocommerce-admin/src/API/OnboardingTasks.php
Methods Methods
- create_homepage — Create a homepage from a template.
- create_pages_permission_check — Check if a given request has access to create a product.
- create_product_from_template — Creates a product from a template name passed in through the template_name param.
- create_products_permission_check — Check if a given request has access to create a product.
- create_store_pages — Creates base store starter pages like my account and checkout.
- get_available_homepage_images — Gets the possible industry images from the plugin folder for sideloading. If an image doesn't exist, other.jpg is used a fallback.
- get_header_mappings — Get header mappings from CSV columns.
- get_homepage_cover_block — Returns a valid cover block with an image, if one exists, or background as a fallback.
- get_homepage_media_block — Returns a valid media block with an image, if one exists, or a uninitialized media block the user can set.
- get_homepage_template — Returns a homepage template to be inserted into a post. A different template will be used depending on the number of products.
- get_status — Get various onboarding task statuses.
- get_status_item_schema — Get the status endpoint schema, conforming to JSON Schema.
- get_status_permission_check — Check if a given request has access to get onboarding tasks status.
- import_products_permission_check — Check if a given request has access to create a product.
- import_sample_products — Import sample products from WooCommerce sample CSV.
- import_sample_products_from_csv — Import sample products from given CSV path.
- register_routes — Register routes.
- sanitize_special_column_name_regex — Sanitize special column name regex.
- sideload_homepage_images — Uploads a number of images to a homepage template, depending on the selected industry from the profile wizard.