UnslashingFunctionsHelper
in package
FinalYes
Helper functions and function lists for checking whether a function is an unslashing function.
Tags
Table of Contents
Properties
- $unslashingFunctions : array<string, bool>
- Functions which unslash the data passed to them.
Methods
- get_functions() : array<string, bool>
- Retrieve a list of the unslashing functions.
- is_unslashing_function() : bool
- Check if a particular function is regarded as a unslashing function.
Properties
$unslashingFunctions
Functions which unslash the data passed to them.
private
static array<string, bool>
$unslashingFunctions
= array('stripslashes_deep' => true, 'stripslashes_from_strings_only' => true, 'wp_unslash' => true)
Tags
Methods
get_functions()
Retrieve a list of the unslashing functions.
public
static get_functions() : array<string, bool>
Tags
Return values
array<string, bool>is_unslashing_function()
Check if a particular function is regarded as a unslashing function.
public
static is_unslashing_function(string $functionName) : bool
Parameters
- $functionName : string
-
The name of the function to check.