wp_get_custom_css WordPress Filter Hook

The wp_get_custom_css hook allows you to retrieve custom CSS code from a specified Wordpress theme. This is useful if you want to add custom CSS code to your site without having to edit the theme files directly.

apply_filters( 'wp_get_custom_css', string $css, string $stylesheet ) #

Filters the custom CSS output into the head element.


Parameters

$css

(string)CSS pulled in from the Custom CSS post type.

$stylesheet

(string)The theme stylesheet name.


Top ↑

Source

File: wp-includes/theme.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More