Method | Description | |
---|---|---|
__construct ( ) | Setup class. | |
add_endpoint ( ) | WC API for payment gateway IPNs, etc. | |
add_query_vars ( array $vars ) : string[] | Add new query vars. | |
handle_api_requests ( ) | API request - Trigger any API requests. | |
register_rest_routes ( ) | Register REST API routes. | |
register_wp_admin_settings ( ) | Register WC settings from WP-API to the REST API. |
Method | Description | |
---|---|---|
rest_api_includes ( ) | Include REST API classes. | |
rest_api_init ( ) | Init WP REST API. |
public static add_endpoint ( ) |
public add_query_vars ( array $vars ) : string[] | ||
$vars | array | |
return | string[] |
public handle_api_requests ( ) |
public register_wp_admin_settings ( ) |