add_cap(LDC_MESSAGE_CAP, true); } // get the the role object $admin_role = get_role($ldcMessageRole); // grant capability to wp-admin $admin_role->add_cap('read', true);