WooCommerce Code Reference

AbilityDefinition

Defines a WooCommerce ability registration class.

Tags
since
10.9.0

Table of Contents

get_name()  : string
Get the ability name.
get_registration_args()  : array<string|int, mixed>
Get the arguments used to register the ability with the WordPress Abilities API.

Methods

get_registration_args()

Get the arguments used to register the ability with the WordPress Abilities API.

public static get_registration_args() : array<string|int, mixed>
Tags
since
10.9.0
Return values
array<string|int, mixed>