Automattic\WooCommerce\Internal\Abilities

AbilitiesTracking::handle_wp_after_execute_ability │ public │ WC 1.0

Handle the wp_after_execute_ability action, which fires after a successful execution.

Method of the class: AbilitiesTracking{}

No Hooks.

Returns

null. Nothing (null).

Usage

$AbilitiesTracking = new AbilitiesTracking();
$AbilitiesTracking->handle_wp_after_execute_ability( $ability_name, $input ): void;
$ability_name(string) (required)
The ability name.
$input(mixed)
The input. Only read for MCP Adapter discovery.
Default: null

AbilitiesTracking::handle_wp_after_execute_ability() code WC 11.3.0

public function handle_wp_after_execute_ability( $ability_name, $input = null ): void {
	$this->close_frame( $ability_name, true, null );
	$this->record_discovery( $ability_name, $input );
}