WordPress at Your Fingertips
function is not described

WC_Admin_API_Keys::actions() public WC 1.0

API Keys admin actions.

{} It's a method of the class: WC_Admin_API_Keys{}

No Hooks.

Return

null. Nothing.

Usage

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

Code of WC_Admin_API_Keys::actions() WC 5.9.0

public function actions() {
	if ( $this->is_api_keys_settings_page() ) {
		// Revoke key.
		if ( isset( $_REQUEST['revoke-key'] ) ) { // WPCS: input var okay, CSRF ok.
			$this->revoke_key();
		}

		// Bulk actions.
		if ( isset( $_REQUEST['action'] ) && isset( $_REQUEST['key'] ) ) { // WPCS: input var okay, CSRF ok.
			$this->bulk_actions();
		}
	}
}