locale_stylesheet_uri
Filter HookDescription
Filters the localized stylesheet URI.Hook Information
File Location |
wp-includes/theme.php
View on GitHub
|
Hook Type | Filter |
Line Number | 307 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$stylesheet_uri
|
Localized stylesheet URI. |
string
|
$stylesheet_dir_uri
|
Stylesheet directory URI. |
Usage Examples
Basic Usage
<?php
// Hook into locale_stylesheet_uri
add_filter('locale_stylesheet_uri', 'my_custom_filter', 10, 2);
function my_custom_filter($stylesheet_uri, $stylesheet_dir_uri) {
// Your custom filtering logic here
return $stylesheet_uri;
}
Source Code Context
wp-includes/theme.php:307
- How this hook is used in WordPress core
<?php
302 * @since 2.1.0
303 *
304 * @param string $stylesheet_uri Localized stylesheet URI.
305 * @param string $stylesheet_dir_uri Stylesheet directory URI.
306 */
307 return apply_filters( 'locale_stylesheet_uri', $stylesheet_uri, $stylesheet_dir_uri );
308 }
309
310 /**
311 * Retrieves name of the active theme.
312 *
PHP Documentation
<?php
/**
* Filters the localized stylesheet URI.
*
* @since 2.1.0
*
* @param string $stylesheet_uri Localized stylesheet URI.
* @param string $stylesheet_dir_uri Stylesheet directory URI.
*/
Quick Info
- Hook Type: Filter
- Parameters: 2
- File: wp-includes/theme.php
Related Hooks
Related hooks will be displayed here in future updates.