WordPress at Your Fingertips
function is not described

WC_Meta_Box_Product_Data::output_variations() public WC 1.0

Show options for the variable product type.

{} It's a method of the class: WC_Meta_Box_Product_Data{}

Return

null. Nothing.

Usage

$result = WC_Meta_Box_Product_Data::output_variations();

Code of WC_Meta_Box_Product_Data::output_variations() WC 6.1.1

public static function output_variations() {
	global $post, $wpdb, $product_object;

	$variation_attributes   = array_filter( $product_object->get_attributes(), array( __CLASS__, 'filter_variation_attributes' ) );
	$default_attributes     = $product_object->get_default_attributes();
	$variations_count       = absint( apply_filters( 'woocommerce_admin_meta_boxes_variations_count', $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(ID) FROM $wpdb->posts WHERE post_parent = %d AND post_type = 'product_variation' AND post_status IN ('publish', 'private')", $post->ID ) ), $post->ID ) );
	$variations_per_page    = absint( apply_filters( 'woocommerce_admin_meta_boxes_variations_per_page', 15 ) );
	$variations_total_pages = ceil( $variations_count / $variations_per_page );

	include __DIR__ . '/views/html-product-data-variations.php';
}