WC_Admin_Webhooks::page_output()public staticWC 1.0

Page output.

Метод класса: WC_Admin_Webhooks{}

Хуков нет.

Возвращает

null. Ничего.

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

$result = WC_Admin_Webhooks::page_output();

Код WC_Admin_Webhooks::page_output() WC 7.3.0

public static function page_output() {
	// Hide the save button.
	$GLOBALS['hide_save_button'] = true;

	// phpcs:ignore WordPress.Security.NonceVerification.Recommended
	if ( isset( $_GET['edit-webhook'] ) ) {
		// phpcs:ignore WordPress.Security.NonceVerification.Recommended
		$webhook_id = absint( $_GET['edit-webhook'] );
		$webhook    = new WC_Webhook( $webhook_id );

		include __DIR__ . '/settings/views/html-webhooks-edit.php';
		return;
	}

	self::table_list_output();
}