wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
content_url › WordPress Function
Seit2.6.0
Veraltetn/v
› content_url ( $path = '' )
| Parameter: |
|
| Gibt zurück: |
|
| Definiert in: |
|
| Codex: |
Retrieves the URL to the content directory.
Quellcode
function content_url( $path = '' ) {
$url = set_url_scheme( WP_CONTENT_URL );
if ( $path && is_string( $path ) ) {
$url .= '/' . ltrim( $path, '/' );
}
/**
* Filters the URL to the content directory.
*
* @since 2.8.0
*
* @param string $url The complete URL to the content directory including scheme and path.
* @param string $path Path relative to the URL to the content directory. Blank string
* if no path is specified.
*/
return apply_filters( 'content_url', $url, $path );
}