Filters the layer before it is being processed.
Arguments:
- $layer: Object layer data
- $post_data: Array data relative to the post being processed
add_filter('safi_filter_layer', function ($layer, $post_data) { //Do something return $layer; }, 10, 2);