Resources

My Agape try

Your Agape try


Support Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




Capability Type as Array not working

UserPost

9:39 pm
March 23, 2011


teeks

New Member

posts 1

1

Not sure if this is a Role Scoper issue, a WP codex issue or a Teeks being an idiot issue. Pretty sure it will be obvious to anyone with a deeper understanding than I…

In the WP codex, for defining capabilities for custom post types it says you can pass it an array, as I've done here (in my options array, passed to register_post_type):

'capability_type' => array("activity", "activities")

It allows that for when you need more than just an S added to the capability definitions, e.g. edit_others_activitys (code vs grammar fail).

SO I have followed intructions in other parts of the forum and have my custom post type working awesomely with role scoper… EXCEPT this one thing.

When I go to the RS Role Definitions, the definitions are broke and I get options like, edit_others_activitiess OR edit_s

It seems to ignore my given plural labels and adds an 's' anyway or for singular it only has 's'.

Little help?

Thanks. Smile

10:28 am
March 28, 2011


Kevin

Admin

posts 2503

2

This is fixed in the updated Role Scoper development code.


About the Agapetry forum

Currently Online:

11 Guests

Maximum Online: 150

Forums:

Groups: 2

Forums: 7

Topics: 1245

Posts: 5653

Members:

There are 1255 members

There are 1 guests


Kevin has made 2503 posts

Top Posters:

metal450 - 178

Ragnar - 108

YikYak - 70

whiteorb - 49

Daisy - 35

Administrator: Kevin | Moderators: Kevin