WordPress at Your Fingertips
function is not described

WC_Webhook::set_user_id() public WC 3.2.0

Set user ID.

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

No Hooks.

Return

null. Nothing.

Usage

$WC_Webhook = new WC_Webhook();
$WC_Webhook->set_user_id( $user_id );
$user_id(int) (required)
User ID.

Changelog

Since 3.2.0 Introduced.

Code of WC_Webhook::set_user_id() WC 5.9.0

public function set_user_id( $user_id ) {
	$this->set_prop( 'user_id', (int) $user_id );
}