Skip to main content

Functions

Functions are called directly in expressions, unlike filters which transform a value with the pipe | operator.

{{ min(1, 2, 3) }}
{{ get_post(42).title }}
{{ html_classes('btn', {active: is_active}) }}

Available Functions

CategoryFunctions
Coremin, max, random, range, cycle, date, html_classes
WordPressget_post, get_posts, get_term, get_terms, get_user, get_users, get_image