woocommerce_get_children

woocommerce_get_children

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

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_get_children') is found 2 times:

  • /includes/class-wc-product-variable.php line 229
    			$this->set_children( $children['all'] );
    			$this->set_visible_children( $children['visible'] );
    		}
    
    		return apply_filters( 'woocommerce_get_children', $this->children, $this, false );
    	}
    
    	/**
    	 * Return a products child ids - visible only.
    	 *
    	 * This is lazy loaded as it's not used often and does require several queries.
    
  • /includes/class-wc-product-variable.php line 246
    			$children = $this->data_store->read_children( $this );
    			$this->set_children( $children['all'] );
    			$this->set_visible_children( $children['visible'] );
    		}
    		return apply_filters( 'woocommerce_get_children', $this->visible_children, $this, true );
    	}
    
    	/**
    	 * Return an array of attributes used for variations, as well as their possible values.
    	 *
    	 * This is lazy loaded as it's not used often and does require several queries.