Automattic\WooCommerce\Internal\Abilities\REST

RestAbility::__construct │ public │ WC 1.0

Constructor.

Method of the class: RestAbility{}

No Hooks.

Returns

null. Nothing (null).

Usage

$RestAbility = new RestAbility();
$RestAbility->__construct( $name, $args );
$name(string) (required)
The ability name.
$args(array) (required)
The ability arguments.

RestAbility::__construct() code WC 11.3.0

public function __construct( string $name, array $args ) {
	McpEndpointRemoval::doing_it_wrong( __CLASS__ );
	parent::__construct( $name, $args );
}