get_name example

'<time datetime="%1$s" class="wp-block-rss__item-publish-date">%2$s</time> ',
                    esc_attr( date_i18n( 'c', $date ) ),
                    esc_attr( date_i18n( get_option( 'date_format' )$date ) )
                );
            }
        }

        $author = '';
        if ( $attributes['displayAuthor'] ) {
            $author = $item->get_author();
            if ( is_object( $author ) ) {
                $author = $author->get_name();
                $author = '<span class="wp-block-rss__item-author">' . sprintf(
                    /* translators: %s: the author. */
                    __( 'by %s' ),
                    esc_html( strip_tags( $author ) )
                ) . '</span>';
            }
        }

        $excerpt = '';
        if ( $attributes['displayExcerpt'] ) {
            $excerpt = html_entity_decode( $item->get_description(), ENT_QUOTES, get_option( 'blog_charset' ) );
            
$date = $item->get_date( 'U' );

            if ( $date ) {
                $date = ' <span class="rss-date">' . date_i18n( get_option( 'date_format' )$date ) . '</span>';
            }
        }

        $author = '';
        if ( $show_author ) {
            $author = $item->get_author();
            if ( is_object( $author ) ) {
                $author = $author->get_name();
                $author = ' <cite>' . esc_html( strip_tags( $author ) ) . '</cite>';
            }
        }

        if ( '' === $link ) {
            echo "<li>$title{$date}{$summary}{$author}</li>";
        } elseif ( $show_summary ) {
            echo "<li><a class='rsswidget' href='$link'>$title</a>{$date}{$summary}{$author}</li>";
        } else {
            echo "<li><a class='rsswidget' href='$link'>$title</a>{$date}{$author}</li>";
        }
    }

    public function add_store( $store ) {
        if ( ! $store instanceof WP_Style_Engine_CSS_Rules_Store ) {
            _doing_it_wrong(
                __METHOD__,
                __( '$store must be an instance of WP_Style_Engine_CSS_Rules_Store' ),
                '6.1.0'
            );
            return $this;
        }

        $this->stores[ $store->get_name() ] = $store;

        return $this;
    }

    /** * Adds rules to be processed. * * @since 6.1.0 * * @param WP_Style_Engine_CSS_Rule|WP_Style_Engine_CSS_Rule[] $css_rules A single, or an array of, * WP_Style_Engine_CSS_Rule objects * from a store or otherwise. * @return WP_Style_Engine_Processor Returns the object to allow chaining methods. */
Home | Imprint | This part of the site doesn't use cookies.