USER_OPTION
Less than 1 minute
Syntax
${USER_OPTION.<pathToProperty>}
Definition
Very similar to the USER marker, with the only difference in how the data is fetched the data. For this marker, AAM uses WordPress core function get_user_option.
In the following example, we allow access to all posts in the category with ID 15, if user was registered after January 10th, 2024.
{
"Statement": {
"Effect": "deny",
"Resource": "Term:category:15:posts",
"Action": [
"List",
"Read"
],
"Condition": {
"Less": {
"${USER_OPTION.user_registered}": "2024-01-15 23:59:59"
}
}
}
}