WooCommerce Code Reference

StepExporter

Interface StepExporter

A Step Exporter is responsible collecting data needed for a Step object and exporting it. Refer to the Step class for the data needed as each step may require different data.

Table of Contents

check_step_capabilities()  : bool
Check if the current user has the required capabilities for this step.
export()  : Step
Collect data needed for a Step object and export it.
get_step_name()  : string
Returns the name of the step class it exports.

Methods

check_step_capabilities()

Check if the current user has the required capabilities for this step.

public check_step_capabilities() : bool
Return values
boolTrue if the user has the required capabilities. False otherwise.