WPDev.one
Core Function
View Source on Trac ↗

_deep_replace()

_deep_replace( mixed $search, mixed $subject )

Performs a deep string replace operation to ensure the values in $search are no longer present.

Parameters 2 required

Name / Type Description
mixed

(string | array) $search The value being searched for, otherwise known as the needle. An array may be used to designate multiple needles.

Required
$subject
string

The string being searched and replaced on, otherwise known as the haystack.

Required

Return Value

(string)
The string with the replaced values.

Function Information

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