Used By
Used By | Description |
---|---|
wp-includes/class.wp-styles.php: WP_Styles::do_item() | Processes a style dependency. |
Whether a handle’s source is in a default directory.
(string) (Required) The source of the enqueued style.
(bool) True if found, false if not.
File: wp-includes/class.wp-styles.php
public function in_default_dir( $src ) { if ( ! $this->default_dirs ) { return true; } foreach ( (array) $this->default_dirs as $test ) { if ( 0 === strpos( $src, $test ) ) { return true; } } return false; }
Version | Description |
---|---|
2.8.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_styles/in_default_dir