You appear to be a bot. Output may be restricted
Description
Displays the site description.
Usage
$string = twentytwenty_site_description( $display );
Parameters
- $display
- ( bool ) optional default: 1 – Display or return the HTML.
Returns
string The HTML to display.
Source
File name: twentytwenty/inc/template-tags.php
Lines:
1 to 30 of 30
function twentytwenty_site_description( $display = true ) { $description = get_bloginfo( 'description' ); if ( ! $description ) { return; } $wrapper = '<div class="site-description">%s</div><!-- .site-description -->'; $html = sprintf( $wrapper, esc_html( $description ) ); /** * Filters the HTML for the site description. * * @since Twenty Twenty 1.0 * * @param string $html The HTML to display. * @param string $description Site description via `bloginfo()`. * @param string $wrapper The format used in case you want to reuse it in a `sprintf()`. */ $html = apply_filters( 'twentytwenty_site_description', $html, $description, $wrapper ); if ( ! $display ) { return $html; } echo $html; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped }