PostTemplateCondition
class PostTemplateCondition implements ConditionInterface (View source)
Check against the current post's template.
Methods
Details
at line 41
__construct(string $post_template, string|string[] $post_types = [])
Constructor
at line 49
boolean
isSatisfied(RequestInterface $request)
Get whether the condition is satisfied
at line 58
array
getArguments(RequestInterface $request)
Get an array of arguments for use in request