<?php add_filter( "acf/location/rule_values/type=post_type", function ( $values, $rule ) { $values['attachment'] = 'Attachment'; return $values; }, 10, 2 );