Why do comment moderators need to have all create/edit/delete toboth posts and pages?

Ordinarily WordPress only allows Editors and Administrators to moderate comments, and both roles require those capabilities. This page from the Codex does an excellent job of explaining roles and capabilities: https://wordpress.org/support/article/roles-and-capabilities/ You can manually create a new Role and assign to it only the capabilities you want the Role to have, so that those you … Read more

Custom roles can’t access to wp-admin

With help of following code you can make a custom user role access the control panel. Following code works on hooks admin_init or init add_action( ‘admin_init’, ‘my_custom_function’ ); function my_custom_function() { add_role( ‘new_role’, ‘New Role’ ); $role = get_role( ‘new_role’ ); $role->add_cap( ‘edit_posts’ ); $role->add_cap( ‘edit_pages’ ); $role->add_cap( ‘edit_others_posts’ ); $role->add_cap( ‘create_posts’ ); $role->add_cap( ‘manage_categories’ … Read more

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