wp_get_custom_css хук-фильтр . WP 4.7.0
Filters the Custom CSS Output into the <head>.
Использование
add_filter( 'wp_get_custom_css', 'filter_function_name_1418', 10, 2 ); function filter_function_name_1418( $css, $stylesheet ){ // filter... return $css; }
- $css(строка)
- CSS pulled in from the Custom CSS CPT.
- $stylesheet(строка)
- The theme stylesheet name.
Список изменений
С версии 4.7.0 | Введена. |
Где вызывается хук
wp_get_custom_css
wp-includes/theme.php 1918
$css = apply_filters( 'wp_get_custom_css', $css, $stylesheet );
Где используется хук в ядре WordPress
wp-includes/theme.php 88
add_filter( 'wp_get_custom_css', array( $this, 'filter_previewed_wp_get_custom_css' ), 9, 2 );