diff --git a/init.php b/init.php index 3b65099..56b03b6 100644 --- a/init.php +++ b/init.php @@ -131,6 +131,7 @@ public function render( $field, $escaped_value, $object_id, $object_type, $field // If there are no posts found, just stop if ( empty( $objects ) ) { + echo apply_filters( 'cmb2_attached_posts_field_no_items_found', sprintf( '
%s
', __( 'No items found.' ) ) ); return; }