Thanks kpdesign.
With Adminimize plugin, I was not able to delete “More information” link (the right side of “Keyboard Shortcuts” check box ) on “Your Profile”->”Profile” page(I want to delete only the link, not entire profile page.).
So, I think I can redirect the user to another page when they crick the link. I wrote a code bellow to redirect user. However, it is not working.
function redirect_document_link() {
if ( !current_user_can('manage_options') && ($_SERVER['HTTP_HOST'] == 'codex.wordpress.org' || $_SERVER['HTTP_HOST'] == 'codex.wordpress.org' ) ) {
wp_redirect(get_option('siteurl') . '/wp-content/theme/default/index.php');
exit(0);
}
}
add_action( 'init', 'redirect_document_link' );
Can somebody tell me what is wrong with the code I wrote above?