change filter name and position `woocommerce_product_export_get_limit`
This commit is contained in:
parent
f383886fb5
commit
8983b38598
|
@ -46,7 +46,6 @@ abstract class WC_CSV_Batch_Exporter extends WC_CSV_Exporter {
|
|||
$upload_dir = wp_upload_dir();
|
||||
$this->file = trailingslashit( $upload_dir['basedir'] ) . $this->get_filename();
|
||||
$this->column_names = $this->get_default_column_names();
|
||||
apply_filters( 'woocommerce_product_export_init', $this );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -296,7 +296,7 @@ abstract class WC_CSV_Exporter {
|
|||
* @return int
|
||||
*/
|
||||
public function get_limit() {
|
||||
return $this->limit;
|
||||
return apply_filters( "woocommerce_product_export_get_limit", $this->limit, $this->export_type);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue