Skip to main content
WP HealthKit

WP_Query

WordPress class for querying posts with custom parameters, supporting complex filtering and pagination.

How it works

WordPress class for querying posts with custom parameters, supporting complex filtering and pagination.

In WordPress

WP_Query is SQL-injection safe when using its parameter array. Never pass unsanitized user input to its SQL-related args.

Related terms

WP HealthKit checks for WP_Query-related vulnerabilities automatically

Run a Free Audit
What Is WP_Query? — WordPress Security Glossary | WP HealthKit