PTKClient
in package
PatternsToolkit class.
Table of Contents
- PATTERNS_TOOLKIT_URL = 'https://public-api.wordpress.com/rest/v1/ptk/patterns/'
- The Patterns Toolkit API URL
- fetch_patterns() : array<string|int, mixed>|WP_Error
- Fetch the WooCommerce patterns from the Patterns Toolkit (PTK) API.
Constants
PATTERNS_TOOLKIT_URL
The Patterns Toolkit API URL
public
mixed
PATTERNS_TOOLKIT_URL
= 'https://public-api.wordpress.com/rest/v1/ptk/patterns/'
Methods
fetch_patterns()
Fetch the WooCommerce patterns from the Patterns Toolkit (PTK) API.
public
fetch_patterns([array<string|int, mixed> $options = array() ]) : array<string|int, mixed>|WP_Error
Parameters
- $options : array<string|int, mixed> = array()
-
Options for fetching patterns.