WC_Admin_Webhooks::actions()publicWC 1.0

Webhooks admin actions.

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

Хуков нет.

Возвращает

null. Ничего.

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

$WC_Admin_Webhooks = new WC_Admin_Webhooks();
$WC_Admin_Webhooks->actions();

Код WC_Admin_Webhooks::actions() WC 7.1.0

public function actions() {
	if ( $this->is_webhook_settings_page() ) {
		// Save.
		// phpcs:ignore WordPress.Security.NonceVerification.Missing
		if ( isset( $_POST['save'] ) && isset( $_POST['webhook_id'] ) ) {
			$this->save();
		}

		// Delete webhook.
		// phpcs:ignore WordPress.Security.NonceVerification.Recommended
		if ( isset( $_GET['delete'] ) ) {
			$this->delete();
		}
	}
}