Summery Summery
Whether a handle’s source is in a default directory.
Syntax Syntax
Parameters Parameters
- $src
-
(Required) The source of the enqueued style.
Return Return
(bool) True if found, false if not.
Source Source
File: wp-includes/class.wp-styles.php
* @param string $src The source of the enqueued style. * @return bool True if found, false if not. */ 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; }
Advertisement
Changelog Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |