If your website has multiple users with different roles, We can disable Admin link to users other then admin using below code.
Copy and Paste Below code in your Theme's 'function.php'
<?php if (current_user_can("manage_options")) : ?>
<a href="<?php echo bloginfo('url') ?>/wp-admin/">Admin</a>
<?php endif; ?>
Copy and Paste Below code in your Theme's 'function.php'
<?php if (current_user_can("manage_options")) : ?>
<a href="<?php echo bloginfo('url') ?>/wp-admin/">Admin</a>
<?php endif; ?>
No comments:
Post a Comment