WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/add magic quotes

Description

Walks an array while sanitizing the contents.

Usage

<?php add_magic_quotes$array ?>

Parameters

$array
(array) (required) Array to walk while sanitizing contents.
Default: None

Return Values

(array) 
Sanitized $array.

Examples

Notes

  • Uses global: (object) $wpdb to sanitize values

Change Log

Since: 0.71

Source File

add_magic_quotes() is located in wp-includes/functions.php.

Related

See also index of Function Reference and index of Template Tags.