tptn_high_traffic_get_context_id()
Resolve a site-wide context to its fixed reserved ID.
Keep this map in sync with Sitewide_Database::CONTEXT_IDS and the settings help text. The endpoint intentionally does not query or create a registry table.
Source: includes/pro/high-traffic-tracker-js.php line 91
Signature
function tptn_high_traffic_get_context_id( $context ): int;
Parameters
| Type | Name | Description |
|---|---|---|
string |
$context |
Context key. |
Returns
int — Numeric context ID, or 0 for an unknown context.