{"id":18998824,"date":"2026-08-20T19:15:49","date_gmt":"2026-08-20T19:15:49","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/update-4-3\/"},"modified":"2026-08-20T19:15:49","modified_gmt":"2026-08-20T19:15:49","slug":"update-4-3","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/update-4-3\/","title":{"rendered":"update 4"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I have a dashboard widget that uses get_users_online().<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The purpose of my widget was to see the current number at a glance and if I want more I go to your admin page.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This function return a link to &#8220;index.php?page=useronline&#8221; it should be &#8220;admin.php?page=wp-useronline&amp;tab=useronline&#8221;.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">My solution was using str_replace() to get the proper link to the admin page.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thanks!<\/p>\n","protected":false},"template":"","class_list":["post-18998824","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18998824","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18998824\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18998824"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}