Filters a text layer before it has been processed. At this stage, dynamic text has not been transformed into its final value yet.
Arguments:
- $text: String raw text value
- $layer: Object layer data
- $post_data: Array data relative to the post being processed
add_filter('safi_preprocess_text', function ($text, $layer, $post_data) { // Do something return ($text); }, 10, 3);