: This article mainly introduces the tips of WordPres for using two PHP functions during front-end page debugging. if you are interested in PHP tutorials, refer to it. Function esc_js () (filter Html embedded JS)
Parameters
$ Text
(String) (required) the string to be filtered.
Default value: None
Return value
(String) returns the filtered string.
Example
More
This function is located in: wp-includes/formatting. php
Nocache_headers () (disable browser cache)
Nocache_headers () is used to send a header to tell the browser to disable caching the current page. it is generally used in Ajax requests to prevent errors.
Usage
Nocache_headers ();
Attribute
This function has no attributes.
Return value
This function has no return value.
Example
Function Bing_add_ajax () {nocache_headers (); echo true; die;} add_action ('Template _ redirect', 'Bing _ add_ajax ');
Others
This function is located in: wp-functions des/functions. php
The above introduces the tips for using the two PHP functions for front-end page debugging in WordPres, including some content. I hope my friends who are interested in the PHP Tutorial will be helpful.