HTTP_GET
Less than 1 minute
Syntax
${HTTP_GET.<pathToProperty>}
Definition
Get data from the PHP superglobal $_GET. 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
}
}
}