wpseek.com
WordPress开发者和主题制作者的搜索引擎
wp_get_custom_css › WordPress Function
Since4.7.0
已弃用n/a
› wp_get_custom_css ( $stylesheet = '' )
参数: |
|
返回: |
|
定义在: |
|
文档: |
Fetches the saved Custom CSS content for rendering.
源码
function wp_get_custom_css( $stylesheet = '' ) { $css = ''; if ( empty( $stylesheet ) ) { $stylesheet = get_stylesheet(); } $post = wp_get_custom_css_post( $stylesheet ); if ( $post ) { $css = $post->post_content; } /** * Filters the custom CSS output into the head element. * * @since 4.7.0 * * @param string $css CSS pulled in from the Custom CSS post type. * @param string $stylesheet The theme stylesheet name. */ $css = apply_filters( 'wp_get_custom_css', $css, $stylesheet ); return $css; }