add_action insert html

I know I am missing something simple. I am trying to use html to log to footer to learn wp. In theme functions.php:

function myLog() {
    echo 'test';    
}

In theme footer within the .siteInfo div:

?php add_action( 'wpmu_new_blog', 'myLog' );?

when a new user creates a new site myLog should output html 'test'?

Please help, save me many more hours of reading and trials.

Topic actions multisite html Wordpress

Category Web


Write myLog() in theme footer within the .siteInfo div. It will work.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.