Load different content to the user profile tab
Use this hook:
function mycustom_user_menu($menus){ $link = 'YOUR_USERPRO_LINK_FUNCTION' //replace this $menus['profile'] = array( 'slug' => 'profile', 'title' => 'Directory details', 'link' => $link, 'order' => 4, 'public' => false); return $menus; } add_filter('ap_user_menu', 'mycustom_user_menu');
![](https://secure.gravatar.com/avatar/cbbc849cc6bf14802f72630fb21dc361?s=30&d=https%3A%2F%2Fanspress.net%2Fwp-content%2Fuploads%2Fap_avatars%2F0336dcbab05b9d5ad24f4333c7658a0e.jpg&r=g)
Zoker (Buyer) commented
What will this hook do?
![](https://secure.gravatar.com/avatar/cbbc849cc6bf14802f72630fb21dc361?s=30&d=https%3A%2F%2Fanspress.net%2Fwp-content%2Fuploads%2Fap_avatars%2F0336dcbab05b9d5ad24f4333c7658a0e.jpg&r=g)
Zoker (Buyer) commented
Can I anyhow overwrite the content in anspress-question-answer/theme/default/user/profile.php
?
![](https://secure.gravatar.com/avatar/cbbc849cc6bf14802f72630fb21dc361?s=30&d=https%3A%2F%2Fanspress.net%2Fwp-content%2Fuploads%2Fap_avatars%2F0336dcbab05b9d5ad24f4333c7658a0e.jpg&r=g)
Zoker (Buyer) commented
Push
Rahul Aryan commented
Yes, that what I asked to do. simply copy this file to your theme like: MY_ACTIVE_THEME/anspress/user/profile.php
And how can I keep it updated safe?