Filter: bricks/dynamic_data/author_value
Filter: bricks/dynamic_data/author_value
Section titled “Filter: bricks/dynamic_data/author_value”Filters the value returned by {author_...} dynamic data tags (e.g., {author_name}, {author_email}).
Parameters
Section titled “Parameters”$value(string): The value of the author field.$field_type(string): The specific author field being retrieved (e.g.,name,email,bio,website,avatar).$filters(array): Array of modifiers applied to the tag (e.g.,['fallback' => '...']).
Example usage
Section titled “Example usage”add_filter( 'bricks/dynamic_data/author_value', function( $value, $field_type, $filters ) { // Example: Append text to author bio if ( $field_type === 'bio' ) { return $value . ' [Verified Author]'; }
return $value;}, 10, 3 ); Was this page helpful?