WC_Admin_Webhooks::page_output
Page output.
Method of the class: WC_Admin_Webhooks{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = WC_Admin_Webhooks::page_output();
WC_Admin_Webhooks::page_output() WC Admin Webhooks::page output code WC 10.6.2
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();
}