Downloading entire site locally with httrack

Try to use WordPress backup plugins like XCloner or Duplicator, both will backup the entire site files along with the database with easy restore or copy of your site on a different server or on local machine.

How to remove Gravatar from Username column

Since there is no special avatar column to unset (the avatars are inside the username column), you could try instead to hide the avatars via css: function hide_avatars_wpse_94126() { if(!current_user_can(‘manage_options’)){ // hide only for non-admins echo “<style>.users td.username img.avatar{display:none !important;}</style>”; } } add_action(‘admin_head-users.php’,’hide_avatars_wpse_94126′); where they are hidden for non-admins. The result will be like this:

How can I access profile Admin Colour Scheme

The current active/selected admin color scheme is a user setting, you can get its value with get_user_option( ‘admin_color’ ). $admin_color = get_user_option( ‘admin_color’ ); if you want to access the color scheme for the specific user then pass the user id as second parameter in the get_user_option() function $user1_id = 2; $user1_color = get_user_option( ‘admin_color’, … Read more

How to add a link to the tax term in the admin Edit page?

The dynamic hook {taxonomy}_term_edit_form_top can be used to output a link to the term’s archive page. Since we’re dealing with terms under the genre taxonomy, we will attach our callback to the genre_term_edit_form_top hook. /** * Adds a link to top of edit term form for terms under the * genre taxonomy. * * @param … Read more

WordPress manage users as non admin

First off, there is no generic “manage users” ability. There are several individual abilities under that rubric. See http://codex.wordpress.org/Roles_and_Capabilities Anyway, you have a couple options. You can add certain capabilities to existing users or you can create a new custom role with the capabilities you need. If a brand new role is needed, one can … Read more

How to add_filter/action to comment out CSS generated by admin function?

I think you can do it like this: function my_admin_bar_init() { remove_action(‘wp_head’, ‘_admin_bar_bump_cb’); } add_action(‘admin_bar_init’, ‘my_admin_bar_init’); Add this to your functions.php file. It will disable outputting of these inline styles in <head> section but the wp_admin_bar will be still available. If you would like to disable wp_admin_bar entirely, you can do it like this: remove_action( … Read more

Different color admin bars for dev, staging and production

You can use a filter to set the admin color scheme, which includes colors for the admin bar: <?php // add a filter add_filter(‘get_user_option_admin_color’, ‘wpse_313419_conditional_admin_color’); // function wpse_313419_conditional_admin_color($result) { // Dev: use ‘light’ color scheme if(get_site_url() == ‘http://dev.example.com’) { return ‘light’; // Staging: use ‘blue’ color scheme } elseif(get_site_url() == ‘http://staging.example.com’) { return ‘blue’; // … Read more