my custom post is : ‘stand’
function my_post_object_query( $args, $field, $post ) {
// modify the order
$current_user = wp_get_current_user();
$user_id = $current_user->ID;
$args['author']=$user_id;
$args['authors']=$user_id;
$args['post_type']='stand';
return $args;
}
// filter for every field
add_filter('acf/fields/post_object/query/name=stand', 'my_post_object_query', 10, 3);