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.
wp_robots_max_image_preview_large()
This directive tells web robots that large image previews are allowed to be displayed, e.g. in search engines, unless the blog is marked as not being public.
Typical usage is as a ‘wp_robots’ callback:
add_filter( 'wp_robots', 'wp_robots_max_image_preview_large' );
wp_robots_sensitive_page()
This directive tells web robots not to index or archive the page content and is recommended to be used for sensitive pages.
Typical usage is as a ‘wp_robots’ callback:
add_filter( 'wp_robots', 'wp_robots_sensitive_page' );
wp_robots_no_robots()
This directive tells web robots not to index the page content.
Typical usage is as a ‘wp_robots’ callback:
add_filter( 'wp_robots', 'wp_robots_no_robots' );
wp_robots_noindex_search()
If a search is being performed then noindex will be output to tell web robots not to index the page content. Add this to the ‘wp_robots’ filter.
Typical usage is as a ‘wp_robots’ callback:
add_filter( 'wp_robots', 'wp_robots_noindex_search' );
wp_robots_noindex_embeds()
Typical usage is as a ‘wp_robots’ callback:
add_filter( 'wp_robots', 'wp_robots_noindex_embeds' );
wp_robots_noindex()
If a blog is marked as not being public then noindex will be output to tell web robots not to index the page content. Add this to the ‘wp_robots’ filter.
Typical usage is as a ‘wp_robots’ callback:
add_filter( 'wp_robots', 'wp_robots_noindex' );
wp_robots()
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.
wp_print_inline_script_tag()
It is possible to inject attributes in the <script>
tag via the ‘wp_script_attributes’ filter. Automatically injects type attribute if needed.
wp_get_inline_script_tag()
It is possible to inject attributes in the <script>
tag via the ‘wp_script_attributes’ filter. Automatically injects type attribute if needed.
wp_print_script_tag()
It is possible to inject attributes in the <script>
tag via the ‘wp_script_attributes’ filter. Automatically injects type attribute if needed.
wp_get_script_tag()
It is possible to inject attributes in the <script>
tag via the ‘wp_script_attributes’ filter. Automatically injects type attribute if needed.
wp_sanitize_script_attributes()
Automatically injects type attribute if needed. Used by wp_get_script_tag() and wp_get_inline_script_tag().
wp_get_direct_update_https_url()
A URL will only be returned if the WP_DIRECT_UPDATE_HTTPS_URL
environment variable is specified or by using the ‘wp_direct_update_https_url’ filter. This allows hosts to send users directly to the page where they can update their site to use HTTPS.
wp_get_default_update_https_url()
Do not use this function to retrieve this URL. Instead, use wp_get_update_https_url() when relying on the URL. This function does not allow modifying the returned URL, and is only used to compare the actually used URL with the default one.
wp_get_update_https_url()
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.
wp_force_plain_post_permalink()
wp_resolve_post_date()
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.
is_post_publicly_viewable()
Posts are considered publicly viewable if both the post status and post type are viewable.
is_post_status_viewable()
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.
wp_getimagesize()
wp_iframe_tag_add_loading_attr()
wp_strict_cross_origin_referrer()
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’ );
wp_is_local_html_output()
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.
wp_cron_conditionally_prevent_sslverify()
This prevents an issue if HTTPS breaks, where there would be a failed attempt to verify HTTPS.
wp_schedule_https_detection()
wp_update_https_detection_errors()
This internal function is called by a regular Cron hook to ensure HTTPS support is detected and maintained.
wp_is_https_supported()
wp_is_site_url_using_https()
This checks the URL where WordPress application files (e.g. wp-blog-header.php or the wp-admin/ folder) are accessible.