wooblueprint_exporters
Filters the step exporters.
Allows adding/removing custom step exporters.
Использование
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.
Список изменений
С версии 0.0.1 | Введена. |
Где вызывается хук
wooblueprint_exporters
woocommerce/packages/blueprint/src/ExportSchema.php 78
$exporters = $this->wp_apply_filters( 'wooblueprint_exporters', array_merge( $this->exporters, $built_in_exporters ) );
Где используется хук в WooCommerce
woocommerce/src/Admin/Features/Blueprint/Init.php 52
add_filter( 'wooblueprint_exporters', array( $this, 'add_woo_exporters' ) );