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

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

add_filter( 'woocommerce_register_post_type_shop_order', 'wp_kama_woocommerce_register_post_type_shop_order_filter' );

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

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

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

WC_Post_Types::register_post_types()
woocommerce_register_post_type_shop_order
woocommerce/includes/class-wc-post-types.php 459-495
apply_filters(
	'woocommerce_register_post_type_shop_order',
	array(
		'labels'              => array(
			'name'                  => __( 'Orders', 'woocommerce' ),
			'singular_name'         => _x( 'Order', 'shop_order post type singular name', 'woocommerce' ),
			'add_new'               => __( 'Add order', 'woocommerce' ),
			'add_new_item'          => __( 'Add new order', 'woocommerce' ),
			'edit'                  => __( 'Edit', 'woocommerce' ),
			'edit_item'             => __( 'Edit order', 'woocommerce' ),
			'new_item'              => __( 'New order', 'woocommerce' ),
			'view_item'             => __( 'View order', 'woocommerce' ),
			'search_items'          => __( 'Search orders', 'woocommerce' ),
			'not_found'             => __( 'No orders found', 'woocommerce' ),
			'not_found_in_trash'    => __( 'No orders found in trash', 'woocommerce' ),
			'parent'                => __( 'Parent orders', 'woocommerce' ),
			'menu_name'             => _x( 'Orders', 'Admin menu name', 'woocommerce' ),
			'filter_items_list'     => __( 'Filter orders', 'woocommerce' ),
			'items_list_navigation' => __( 'Orders navigation', 'woocommerce' ),
			'items_list'            => __( 'Orders list', 'woocommerce' ),
		),
		'description'         => __( 'This is where store orders are stored.', 'woocommerce' ),
		'public'              => false,
		'show_ui'             => true,
		'capability_type'     => 'shop_order',
		'map_meta_cap'        => true,
		'publicly_queryable'  => false,
		'exclude_from_search' => true,
		'show_in_menu'        => current_user_can( 'edit_others_shop_orders' ) ? 'woocommerce' : true,
		'hierarchical'        => false,
		'show_in_nav_menus'   => false,
		'rewrite'             => false,
		'query_var'           => false,
		'supports'            => array( 'title', 'comments', 'custom-fields' ),
		'has_archive'         => false,
	)
)

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

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