Wordpres tips for using two PHP functions for front-end page debugging

Source: Internet
Author: User
function Esc_js () (filter Html embedded JS)
Parameters

$text

(string) (must) the string to filter.

Default value: None

return value

(string) returns the filtered string.

Example

 

More

This function is located at: wp-includes/formatting.php

Nocache_headers () (Disable browser caching)
Nocache_headers () is used to send a header message that tells the browser to disallow caching of the current page, typically used in Ajax requests, to prevent errors.

Usage

Nocache_headers ();

Property

This function has no properties.

return value

There is no return value for this function.

Example

function Bing_add_ajax () {  nocache_headers ();  echo true;  Die;} Add_action (' Template_redirect ', ' Bing_add_ajax ');

Other

This function is located at: wp-includes/functions.php

The above describes the Wordpres on the front page debugging two PHP functions using tips, including aspects of the content, I hope the PHP tutorial interested in a friend helpful.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.