CTP capability error
-
Hi, i added custom capability with in function.php after have created with plugin Types a CTP called annuncio `function add_theme_caps() {
// gets the author role
$role = get_role( ‘cittadino’ );
$role2 = get_role( ‘contributor’ );
$role3 = get_role( ‘author’ );// This only works, because it accesses the class instance.
// would allow the author to edit others’ posts for current theme only
$role->add_cap( ‘delete_published_annunci’ );
$role2->add_cap( ‘delete_published_annunci’ );
$role3->add_cap( ‘delete_published_annunci’ );
}
add_action( ‘admin_init’, ‘add_theme_caps’);`But the author seems not can delete published post? Why?
- The topic ‘CTP capability error’ is closed to new replies.