wooblueprint_exporters
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
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 53
add_filter( 'wooblueprint_exporters', array( $this, 'add_woo_exporters' ) );