Allow specific user to edit a specific page

The issue is that an empty return value from map_meta_cap will grant all users permission to do that thing, because that’s essentially the same thing as saying “no capabilities are required to do this”. What you really want to do is just add edit_special_page to the existing list of required capabilities: add_filter( ‘map_meta_cap’, function( $caps, … Read more

Allowing custom role user to edit post assigned to them but don’t let them create new custom type post

You cannot find the capability because it does not exist. In WP out of the box, the paradigm is not post creation, but post publishing. Users can be adjusted to edit and create drafts and pending posts, but not publish. Setting users to only edit however is not possible at the roles and capabilities level, … Read more

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