woocommerce_order_list_table_extra_tablenav хук-событиеWC 7.3.0

Fires immediately following the closing "actions" div in the tablenav for the order list table.

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

add_action( 'woocommerce_order_list_table_extra_tablenav', 'wp_kama_woocommerce_order_list_table_extra_tablenav_action', 10, 2 );

/**
 * Function for `woocommerce_order_list_table_extra_tablenav` action-hook.
 * 
 * @param string $order_type The order type.
 * @param string $which      The location of the extra table nav: 'top' or 'bottom'.
 *
 * @return void
 */
function wp_kama_woocommerce_order_list_table_extra_tablenav_action( $order_type, $which ){

	// action...
}
$order_type(строка)
The order type.
$which(строка)
The location of the extra table nav: 'top' or 'bottom'.

Список изменений

С версии 7.3.0 Введена.

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

ListTable::extra_tablenav()
woocommerce_order_list_table_extra_tablenav
woocommerce/src/Internal/Admin/Orders/ListTable.php 746
do_action( 'woocommerce_order_list_table_extra_tablenav', $this->order_type, $which );

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

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