Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
Controller::get_stats_parts( string $full_stat )
Returns the endpoint part of a stat request (prefix) and the actual stat total we want.
Description Description
To allow extensions to namespace (example: fue/emails/sent), we break on the last forward slash.
Parameters Parameters
- $full_stat
-
(Required) A stat request string like orders/avg_order_value or fue/emails/sent.
Return Return
(array) Containing the prefix (endpoint) and suffix (stat).
Source Source
File: packages/woocommerce-admin/src/API/Reports/PerformanceIndicators/Controller.php