WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WC_Orders_Tracking::track_add_order_from_edit() public WC 1.0

Track "add order" button on the Edit Order screen.

Это метод класса: WC_Orders_Tracking{}

Хуков нет.

Возвращает

Null. Ничего.

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

$WC_Orders_Tracking = new WC_Orders_Tracking();
$WC_Orders_Tracking->track_add_order_from_edit();

Код WC Orders Tracking::track add order from edit: woocommerce/includes/tracks/events/class-wc-orders-tracking.php WC 4.5.2

<?php
public function track_add_order_from_edit() {
	// phpcs:ignore WordPress.Security.NonceVerification, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
	if ( isset( $_GET['post_type'] ) && 'shop_order' === wp_unslash( $_GET['post_type'] ) ) {
		$referer = wp_get_referer();

		if ( $referer ) {
			$referring_page = wp_parse_url( $referer );
			$referring_args = array();
			$post_edit_page = wp_parse_url( admin_url( 'post.php' ) );

			if ( ! empty( $referring_page['query'] ) ) {
				parse_str( $referring_page['query'], $referring_args );
			}

			// Determine if we arrived from an Order Edit screen.
			if (
				$post_edit_page['path'] === $referring_page['path'] &&
				isset( $referring_args['action'] ) &&
				'edit' === $referring_args['action'] &&
				isset( $referring_args['post'] ) &&
				'shop_order' === get_post_type( $referring_args['post'] )
			) {
				WC_Tracks::record_event( 'order_edit_add_order' );
			}
		}
	}
}