Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

wp_slash()

3 tags 1 category

wp_slash() — Adds slashes to a string or recursively adds slashes to strings within an array. This should be used when preparing data for core API that expects slashed data. This should not be used to escape data going directly into an SQL query.

Inputs: $value (string|array): String or array of data to slash.

Returns string|array: Slashed $value, in the same type as supplied.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…