WC_Admin_Webhooks::page_output()public staticWC 1.0

Page output.

Method of the class: WC_Admin_Webhooks{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = WC_Admin_Webhooks::page_output();

WC_Admin_Webhooks::page_output() code WC 8.7.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();
}