Support » Plugin: Custom Post Types and Custom Fields creator - WCK » How to add Capabilty String in WCK

Viewing 1 replies (of 1 total)
  • Plugin Author madalin.ungureanu

    (@madalinungureanu)

    Hi,

    I think you can achieve what you want with the “Capability Type” field under Advanced options in Custom post type creator.

    It works like capability_type argument in register_post_type function( http://codex.wordpress.org/Function_Reference/register_post_type )

    capability_type
    (string or array) (optional) The string to use to build the read, edit, and delete capabilities. May be passed as an array to allow for alternative plurals when using this argument as a base to construct the capabilities, e.g. array(‘story’, ‘stories’). By default the capability_type is used as a base to construct capabilities. It seems that map_meta_cap needs to be set to true, to make this work.

    Default: “post”

Viewing 1 replies (of 1 total)
  • The topic ‘How to add Capabilty String in WCK’ is closed to new replies.