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.


Top ↑

Return Return

(array) Containing the prefix (endpoint) and suffix (stat).


Top ↑

Source Source

File: packages/woocommerce-admin/src/API/Reports/PerformanceIndicators/Controller.php


			


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.