WPDev.one

esc_sql()

esc_sql( mixed $data )

Escapes data for use in a MySQL query.

Parameters 1 required

Name / Type Description
(string

| array) $data Unescaped data.

Required

Return Value

((string)
| array) Escaped data, in the same type as supplied.

Function Information

Since Version
2.8.0
Source File
wp-includes/formatting.php
Advertisement