Introduces the woocommerce_ajax_admin_get_variations_args filter, closes #8690
This commit is contained in:
parent
09145181e5
commit
6c4893e0b2
|
@ -2481,7 +2481,7 @@ class WC_AJAX {
|
|||
}
|
||||
|
||||
// Get variations
|
||||
$args = array(
|
||||
$args = apply_filters( 'woocommerce_ajax_admin_get_variations_args', array(
|
||||
'post_type' => 'product_variation',
|
||||
'post_status' => array( 'private', 'publish' ),
|
||||
'posts_per_page' => $per_page,
|
||||
|
@ -2489,7 +2489,7 @@ class WC_AJAX {
|
|||
'orderby' => 'ID',
|
||||
'order' => 'DESC',
|
||||
'post_parent' => $product_id
|
||||
);
|
||||
), $product_id );
|
||||
|
||||
$variations = get_posts( $args );
|
||||
$loop = 0;
|
||||
|
|
Loading…
Reference in New Issue