apply_filters( 'wpas_email_notifications_tags_values', $tags, $post_id );
Version 3.0.0
add_filter( 'wpas_email_notifications_tags_values', function( $tags, $post_id ) {
$data = [];
foreach( $tags as $i => $tag ) {
$name = trim( $tag['tag'], '{}' );
switch( $name ) {
case 'my_tag_1':
$tag[ 'value' ] = 'My Tag 1 Value';
break;
case 'my_tag_2':
$tag[ 'value' ] = 'My Tag 2 Value';
break;
}
array_push( $data, $tag );
}
return $data;
}, 20, 2 );