How to make function appear in sentence?

Question

I have a function to show theme details and want to put it in a sentence.
Like: The “theme” developed by “author”. And it will contain links.

I tried printf, did get the correct result.

    function logbook_info() {
    $theme_logbook = wp_get_theme();
    echo esc_html( $theme_logbook->get( 'TextDomain' ) );
    echo esc_html( $theme_logbook->get( 'ThemeURI' ) );
    echo esc_html( $theme_logbook->get( 'AuthorURI' ) );
}

add_action( 'logbookinfo', 'logbook_info' );
0
, esel 2 years 2019-12-31T08:38:36-05:00 0 Answers 82 views 0

Leave an answer

Browse
Browse