Summery Summery
Whether the user can access the visual editor.
Syntax Syntax
Description Description
Checks if the user can access the visual editor and that it’s supported by the user’s browser.
Return Return
(bool) True if the user can access the visual editor, false otherwise.
Source Source
File: wp-includes/general-template.php
*/ $urls = apply_filters( 'wp_resource_hints', $urls, $relation_type ); foreach ( $urls as $key => $url ) { $atts = array(); if ( is_array( $url ) ) { if ( isset( $url['href'] ) ) { $atts = $url; $url = $url['href']; } else { continue; } } $url = esc_url( $url, array( 'http', 'https' ) ); if ( ! $url ) { continue; } if ( isset( $unique_urls[ $url ] ) ) { continue; } if ( in_array( $relation_type, array( 'preconnect', 'dns-prefetch' ), true ) ) {
Advertisement
Changelog Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |