softagon Posted October 3, 2016 Share Posted October 3, 2016 I need to put new information tab here: clientssummary.php?userid=2 It's to possible to create a new tab in admin user profile? How can i do this? 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted October 3, 2016 Share Posted October 3, 2016 Yes. First of all you have to "inject" your new tab using jquery after() with an action hook then link it to your custom made page. 0 Quote Link to comment Share on other sites More sharing options...
softagon Posted October 3, 2016 Author Share Posted October 3, 2016 Any documentation with a sample? 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted October 3, 2016 Share Posted October 3, 2016 Using AdminAreaHeaderOutput you could make something like this: function MyCustomTab($vars) { $output .= '<script type="text/javascript"> jQuery(document).ready(function(){ jQuery("#clienttabs").find("LAST-TAB").after(\'<li class="tab"><a href="mycustompage.php?userid='.$_GET["id"].'>Log</a></li>\'); }); </script>'; return $output; } add_hook("AdminAreaHeaderOutput",1,"MyCustomTab"); 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.