All Topics
ACF – Hook Object Post
Hello,
I’m using ACF and I’ve an Object Post named fiche-featured
.
I’m filtering the results from this field using the acf/fields/post_object/query/
hook from ACF.
function gpc_acf_fiche_featured( $args, $field, $post_id ) {
$args['meta_key'] = 'fiche-attachment';
$args['meta_value'] = $post_id;
$args['meta_compare'] = '=';
return $args;
}
add_filter( 'acf/fields/post_object/query/name=theme-featured', 'gpc_acf_fiche_featured', 10, 3 );
This work great but I’d like to apply this filtering is bulk editing too.
Is there any hook from Admin Columns I could use to do such thing?
Thank you.
You must be logged in to reply to this topic.