Get site url and updates data, then use them

i need to get the url wordpress site and the updates avaible on that site. after get these data use it. to test if i get them I tried to echo in the footer.

$updates = wp_get_update_data();

function site_url( $path = ”, $scheme = null ) {
return get_site_url( null, $path, $scheme );
}

theoretically I should be able to echo $update and $path

//
add_action( ‘wp_footer’, ‘my_function’ );

function my_function() {
echo $updates[‘counts’][‘title’];
echo $path;
}

but with the plugin activated wordpress became only a white page

Read more here:: Get site url and updates data, then use them

Leave a Reply

Your email address will not be published. Required fields are marked *