Admin menu link with variable

You can use wp_get_current_user() function to retrieve user login data. Also use get_edit_profile_url() to get profile page link. Note: You can use wp_logout_url() function for logout url. Try following code: add_action( ‘wp_before_admin_bar_render’, ‘wpdd_admin_bar_edit’ ); function wpdd_admin_bar_edit() { global $wp_admin_bar; // Show username with profile link $current_user = wp_get_current_user(); $username = $current_user->user_login; $profile_link = get_edit_profile_url(); $wp_admin_bar->add_menu( … Read more

Add a user to edit the layout of a site

We may need a little more information on the version of WordPress you are running, or at least the interface you are seeing that the new admin is not seeing. Typically, when I troubleshoot WordPress installations and I have to add an administrator, I have full access just like an admin. So, it shouldn’t be … Read more

Unable to add options on dashboard widget ?

$args[‘before_widget’] and $args[‘afters_widget’] (or after_widget) are things you’d add to a front-end sidebar widget. They have no relevance to dashboard widgets. The call to $args[‘before_widget’] is likely throwing an error because it’s not set. Also, your wp_dashboard_setup hook callback is an anonymous function. This won’t work on PHP < 5.3. So double check your PHP … Read more

Issue displaying multiple TinyMCE editors with WPAlchemy

Possibly a simpler way to handle this problem is just use the new wp_editor function (introduced in 3.3). The main drawback is described in the function description: … you cannot put it in meta-boxes that can be dragged and placed elsewhere on the page. Technically, you can, it’s just not going to play nice if … Read more

What Role to assign remote site developer?

“Developer” implies that he will have access to the code – in which case he has carte blanche to do whatever he likes. If you actually mean he just has access to the site admin – and I assume this is multisite as you mentioned being a Super Admin – then a site Admin cannot … Read more