Optimized for pre_output_plugin with method "query_build_hook" only for entries loop