Function: bricks_render_dynamic_data
This helper function will render the dynamic data tags inside of a content string (@since 1.5.5).
echo bricks_render_dynamic_data( $content, $post_id, $context );Parameters:
Section titled “Parameters:”$content- a string containing dynamic data tags (required)$post_id- the post id if needed (default: current post id)$context- the context where the data is used after rendered: text, link, image, media (default: text)
Return:
Section titled “Return:”The string after replacing the dynamic data tags with their content.
Example:
echo bricks_render_dynamic_data('My Post Title: {post_title}');Was this helpful?
A quick vote and short notes help us improve these docs faster.
Leave a note for us
Thanks for sharing feedback. We're using it to improve these docs.