From 3fa173088ba3c7076e761459817bba803569a78d Mon Sep 17 00:00:00 2001 From: Nick Jeffers Date: Sat, 10 Nov 2018 21:07:29 -0800 Subject: [PATCH] add cmb2_attached_posts_objects filter --- init.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init.php b/init.php index a678c75..8ffebec 100644 --- a/init.php +++ b/init.php @@ -430,7 +430,8 @@ public function get_all_objects( $args, $attached = array() ) { } } - return $attached_objects; + return apply_filters( 'cmb2_attached_posts_objects', $attached_objects, $args ); + } /**