change filter name and position `woocommerce_product_export_get_limit`

This commit is contained in:
Luciano Amodio 2017-12-19 17:18:55 +01:00
parent f383886fb5
commit 8983b38598
2 changed files with 1 additions and 2 deletions

View File

@ -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 );
}
/**

View File

@ -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);
}
/**