Introduces the woocommerce_ajax_admin_get_variations_args filter, closes #8690

This commit is contained in:
Claudio Sanches 2015-07-30 19:11:53 -03:00
parent 09145181e5
commit 6c4893e0b2
1 changed files with 2 additions and 2 deletions

View File

@ -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;