woocommerce_variable_children_args

woocommerce_variable_children_args

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_variable_children_args') is found 2 times:

  • /includes/data-stores/class-wc-product-variable-data-store-cpt.php line 163
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
            'terms'    => ProductStockStatus::OUT_OF_STOCK,
            'operator' => 'NOT IN',
        );
    }
    $children['all']     = get_posts( apply_filters( 'woocommerce_variable_children_args', $all_args, $product, false ) );
    $children['visible'] = get_posts( apply_filters( 'woocommerce_variable_children_args', $visible_only_args, $product, true ) );
    $children['version'] = $transient_version;
     
    // Validate the children data before storing it in the transient.
    if ( $this->validate_children_data( $children, $transient_version ) ) {
        set_transient( $children_transient_name, $children, DAY_IN_SECONDS * 30 );
  • /includes/data-stores/class-wc-product-variable-data-store-cpt.php line 164
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
            'operator' => 'NOT IN',
        );
    }
    $children['all']     = get_posts( apply_filters( 'woocommerce_variable_children_args', $all_args, $product, false ) );
    $children['visible'] = get_posts( apply_filters( 'woocommerce_variable_children_args', $visible_only_args, $product, true ) );
    $children['version'] = $transient_version;
     
    // Validate the children data before storing it in the transient.
    if ( $this->validate_children_data( $children, $transient_version ) ) {
        set_transient( $children_transient_name, $children, DAY_IN_SECONDS * 30 );
    }