wpseek.com
WordPress开发者和主题制作者的搜索引擎
includes_url › WordPress Function
Since2.6.0
已弃用n/a
› includes_url ( $path = '', $scheme = null )
参数: (2) |
|
返回: |
|
定义在: |
|
文档: |
Retrieves the URL to the includes directory.
源码
function includes_url( $path = '', $scheme = null ) { $url = site_url( '/' . WPINC . '/', $scheme ); if ( $path && is_string( $path ) ) { $url .= ltrim( $path, '/' ); } /** * Filters the URL to the includes directory. * * @since 2.8.0 * @since 5.8.0 The `$scheme` parameter was added. * * @param string $url The complete URL to the includes directory including scheme and path. * @param string $path Path relative to the URL to the wp-includes directory. Blank string * if no path is specified. * @param string|null $scheme Scheme to give the includes URL context. Accepts * 'http', 'https', 'relative', or null. Default null. */ return apply_filters( 'includes_url', $url, $path, $scheme ); }