Skip to main content

HTTP_GET

Vasyl MartyniukLess than 1 minute

Syntax

${HTTP_GET.<pathToProperty>}

Definition

Get data from the PHP superglobal $_GETopen in new window. The value from the $_GET is extracted AS-IS, so it is important to control the actual value data type by casting it accordingly. Refer to the Typecasting section for more detail.

Below example removes Excerpt metabox if the currently editing page ID is 369.

{
    "Effect": "deny",
    "Resource": "Metabox:post|postexcerpt",
    "Condition": {
        "Equals": {
            "(*int)${HTTP_GET.page}": 369
        }
    }
}
Virtual Assistant