woocommerce_register_post_type_product_variation хук-фильтрWC 1.0

Использование

add_filter( 'woocommerce_register_post_type_product_variation', 'wp_kama_woocommerce_register_post_type_product_variation_filter' );

/**
 * Function for `woocommerce_register_post_type_product_variation` filter-hook.
 * 
 * @param  $array 
 *
 * @return 
 */
function wp_kama_woocommerce_register_post_type_product_variation_filter( $array ){

	// filter...
	return $array;
}
$array
-

Где вызывается хук

WC_Post_Types::register_post_types()
woocommerce_register_post_type_product_variation
woocommerce/includes/class-wc-post-types.php 374-384
apply_filters(
	'woocommerce_register_post_type_product_variation',
	array(
		'label'           => __( 'Variations', 'woocommerce' ),
		'public'          => false,
		'hierarchical'    => false,
		'supports'        => false,
		'capability_type' => 'product',
		'rewrite'         => false,
	)
)

Где используется хук в WooCommerce

Использование не найдено.