Undo User Role Name Change

Rename Existing Role Name : function wps_change_role_name() { global $wp_roles; if ( ! isset( $wp_roles ) ) $wp_roles = new WP_Roles(); if($wp_roles->roles[‘contributor’][‘name’] = ‘Owner’) { $wp_roles->roles[‘contributor’][‘name’] = ‘Contributor’ $wp_roles->role_names[‘contributor’] = ‘Contributor’; } } add_action(‘init’, ‘wps_change_role_name’); From database you can see role : I see a table called “wp_options” with a row named “wp_user_roles”. It contains: … Read more

Make nav-menus.php available for editor

OK now i understand : There was something wrong due to previous manipulations. add_cap is modifying the database, so somehow i had written over other capabilities and it broke the wanted result. So i cleaned the role with the use of a few remove_cap, put my functions back and voilà !

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