diff --git a/src/Pods/Whatsit/Storage/Post_Type.php b/src/Pods/Whatsit/Storage/Post_Type.php index f0c9bf6f54..7ee767bda9 100644 --- a/src/Pods/Whatsit/Storage/Post_Type.php +++ b/src/Pods/Whatsit/Storage/Post_Type.php @@ -520,6 +520,10 @@ public function find( array $args = [] ) { $posts = $query->posts; } else { + if ( pods_is_admin() && 1 === (int) pods_v( 'pods_debug_post_type_find' ) ) { + pods_debug( compact( 'args', 'post_args' ) ); + } + $posts = $query->query( $post_args ); }