section. * Can be done in a nicer way, but hey, an HTTP request for 20 lines of CSS? * * @return void */ function aged_content_message__print_css() { // Not needed on other views than single (or filtered condition). if ( apply_filters( 'aged_content_message__the_content_condition', ! is_single() ) ) { return; } $options = get_option( 'aged_content_message__settings' ); // Empty value: user has removed CSS, go no further. if ( isset( $options[ 'css' ] ) && '' === trim( $options[ 'css' ] ) ) { return; } // Print CSS to
section. printf( '', wp_kses_post( $options[ 'css' ] ) ); }