woocommerce_get_children

woocommerce_get_children

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

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_get_children') is found 2 times:

  • /includes/class-wc-product-variable.php line 231
    			$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 248
    			$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.