wooblueprint_exporters filter-hookWC 0.0.1

Filters the step exporters.

Allows adding/removing custom step exporters.

Usage

add_filter( 'wooblueprint_exporters', 'wp_kama_wooblueprint_exporters_filter' );

/**
 * Function for `wooblueprint_exporters` filter-hook.
 * 
 * @param StepExporter[] $exporters Array of step exporters.
 *
 * @return StepExporter[]
 */
function wp_kama_wooblueprint_exporters_filter( $exporters ){

	// filter...
	return $exporters;
}
$exporters(StepExporter[])
Array of step exporters.

Changelog

Since 0.0.1 Introduced.

Where the hook is called

ExportSchema::export()
wooblueprint_exporters
woocommerce/packages/blueprint/src/ExportSchema.php 78
$exporters = $this->wp_apply_filters( 'wooblueprint_exporters', array_merge( $this->exporters, $built_in_exporters ) );

Where the hook is used in WooCommerce

woocommerce/src/Admin/Features/Blueprint/Init.php 52
add_filter( 'wooblueprint_exporters', array( $this, 'add_woo_exporters' ) );