How to remove administrator role in settings -> general -> New User Default Role?

Okay, this looks tricky, but I think it’s possible. The user-new.php file calls wp_dropdown_roles() to output the list of roles. The wp_dropdown_roles() function calls get_editable_roles() to get the list of roles to output. The get_editable_roles() function has a filter, editable_roles. So, you should be able to add a filter for editable_roles, such that, if the … Read more

Filter custom post types in admin not working

Basically you are doing every thing right except the taxonomy slug in the url should be lowercase so you can simply place this line: esc_url( add_query_arg( array( ‘post_type’ => $post->post_type, ‘Service’ => $term->slug ), ‘edit.php’ ) ), with this: esc_url( add_query_arg( array( ‘post_type’ => $post->post_type, ‘service’ => $term->slug ), ‘edit.php’ ) ), and you should … Read more

Disable all https in WordPress

I don’t believe WordPress sends HTTPS requests unless it has been told to do so. It sounds like you need to undo some previous configuration — most likely change/remove the FORCE_SSL_LOGIN constant. You may have plugins participating as well though. Make sure to check that. Reference: http://codex.wordpress.org/Administration_Over_SSL

Prevent author from changing their posts if admin has modified

You can try the following: /** * Post Update Locker For Authors * If an administrator has updated the post, then lock it for author updates. * @see http://wordpress.stackexchange.com/a/168578/26350 */ add_action( ‘pre_post_update’, function( $post_ID, $data ) { // Target only authors: if( ! current_user_can( ‘edit_post’ ) || current_user_can( ‘edit_others_posts’ ) ) return; // Target only … Read more

How to add super admin to all sites

Super admins do have access to all sites, but they don’t show up in “My Sites” by default, which I imagine is where you’re looking. They’ll want to go to the network admin (/wp-admin/network/, then go to all sites from there, then find the site they want to edit and click “Dashboard” (which appears on … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)