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

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

add_filter( 'woocommerce_register_post_type_shop_order_refund', 'wp_kama_woocommerce_register_post_type_shop_order_refund_filter' );

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

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

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

WC_Post_Types::register_post_types()
woocommerce_register_post_type_shop_order_refund
woocommerce/includes/class-wc-post-types.php 500-516
apply_filters(
	'woocommerce_register_post_type_shop_order_refund',
	array(
		'label'                            => __( 'Refunds', 'woocommerce' ),
		'capability_type'                  => 'shop_order',
		'public'                           => false,
		'hierarchical'                     => false,
		'supports'                         => false,
		'add_order_meta_boxes'             => false,
		'exclude_from_order_count'         => true,
		'exclude_from_order_views'         => false,
		'exclude_from_order_reports'       => false,
		'exclude_from_order_sales_reports' => true,
		'class_name'                       => 'WC_Order_Refund',
		'rewrite'                          => false,
	)
)

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

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