Automattic\WooCommerce\Internal\Abilities
AbilitiesRestBridge{}
Deprecated since 1.3.0. It is no longer supported and may be removed in future releases. Use
WooCommerce abilities registered through WordPress Abilities API instead.Formerly registered REST-derived abilities for the WooCommerce MCP endpoint.
Kept so existing callers don't fatal. The methods do nothing except report incorrect usage.
No Hooks.
Usage
$AbilitiesRestBridge = new AbilitiesRestBridge(); // use class methods
Methods
- public init()
- public static register_abilities()
Changelog
| Deprecated since 11.3.0 | Removed along with the WooCommerce MCP endpoint. Use the WooCommerce abilities registered through the WordPress Abilities API. |
AbilitiesRestBridge{} AbilitiesRestBridge{} code WC 11.3.0
class AbilitiesRestBridge {
/**
* Formerly hooked the REST-derived ability registration.
*
* @internal
*
* @deprecated 11.3.0
*/
final public static function init(): void {
McpEndpointRemoval::doing_it_wrong( __METHOD__ );
}
/**
* Formerly registered the REST-derived abilities.
*
* @deprecated 11.3.0
*/
public static function register_abilities(): void {
McpEndpointRemoval::doing_it_wrong( __METHOD__ );
}
}