wp_check_jsonp_callback
wp_check_jsonp_callback ( $callback )
Parameters:- (string) callback Supplied JSONP callback function name.
Returns:- (bool) Whether the callback function name is valid.
Defined at: - Introduced in WordPress: 4.6.0
- Deprecated in WordPress: —
Description
Checks that a JSONP callback is a valid JavaScript callback name.Only allows alphanumeric characters and the dot character in callback
function names. This helps to mitigate XSS attacks caused by directly
outputting user input.