Skip to content

Files

Latest commit

 

History

History
14 lines (8 loc) · 718 Bytes

WordPress.DB.RestrictedFunctions.md

File metadata and controls

14 lines (8 loc) · 718 Bytes

Pattern: Use of DB-restricted function

Issue: -

Description

Verifies that no database related PHP functions are used.

Avoid touching the database directly. If there is a defined function that can get the data you need, use it. Database abstraction (using functions instead of queries) helps keep your code forward-compatible and, in cases where results are cached in memory, it can be many times faster.

Further Reading