WC_Webhook::get_user_id( string $context = 'view' )
Get the user ID for this webhook.
Description Description
Parameters Parameters
- $context
-
(Optional) What the value is for. Valid values are 'view' and 'edit'.
Default value: 'view'
Return Return
(int)
Source Source
File: includes/class-wc-webhook.php
public function get_user_id( $context = 'view' ) {
return $this->get_prop( 'user_id', $context );
}
Changelog Changelog
| Version | Description |
|---|---|
| 2.2.0 | Introduced. |