twentytwenty_site_logo_args

twentytwenty_site_logo_args

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.0.3

apply_filters('twentytwenty_site_logo_args') is found 1 times:

  • /wp-content/themes/twentytwenty/inc/template-tags.php line 60
    	 *
    	 * @param array $args     Parsed arguments.
    	 * @param array $defaults Function's default arguments.
    	 */
    	$args = apply_filters( 'twentytwenty_site_logo_args', $args, $defaults );
    
    	if ( has_custom_logo() ) {
    		$contents  = sprintf( $args['logo'], $logo, esc_html( $site_title ) );
    		$classname = $args['logo_class'];
    	} else {
    		$contents  = sprintf( $args['title'], esc_url( get_home_url( null, '/' ) ), esc_html( $site_title ) );