Warning: This function may return Boolean FALSE, but may also return a non-Boolean value which evaluates to FALSE. For information about casting to booleans see the PHP documentation. Use the === operator for testing the return value of this function.


Gathers robots directives to include for the current context, using the ‘wp_robots’ filter. The directives are then sanitized, and the robots meta tag is output if there is at least one relevant directive.


This URL can be overridden by specifying an environment variable WP_UPDATE_HTTPS_URL or by using the ‘wp_update_https_url’ filter. Providing an empty string is not allowed and will result in the default URL being used. Furthermore the page the URL links to should preferably be localized in the site language.


If post_date is not provided, this first checks post_date_gmt if provided, then falls back to use the current time.

For back-compat purposes in wp_insert_post, an empty post_date and an invalid post_date_gmt will continue to return ‘1970-01-01 00:00:00’ rather than false.


For built-in post statuses such as publish and private, the ‘public’ value will be evaluted. For all others, the ‘publicly_queryable’ value will be used.


Outputs a referrer origin-when-cross-origin meta tag that tells the browser not to send the full url as a referrer to other sites when cross-origin assets are loaded.

Typical usage is as a wp_head callback. add_action( ‘wp_head’, ‘wp_strict_cross_origin_referrer’ );


This function attempts to check for various common WordPress patterns whether they are included in the HTML string. Since any of these actions may be disabled through third-party code, this function may also return null to indicate that it was not possible to determine ownership.