mindsink-web (@mindsink-web)

Forum Replies Created

Viewing 1 replies (of 1 total)
  • Hope this helps:

    Add this to the bottom of your theme’s functions.php file. For example wp-content/themes/mycurrenttheme/functions.php

    function add_my_new_theme_caps() {

    $role = get_role( ‘editor’ ); // gets the editor role

    $role->add_cap( ‘publish_forums’ );

    $role->add_cap( ‘edit_forums’ );

    $role->add_cap( ‘delete_forums’ );

    $role->add_cap( ‘delete_others_forums’ );

    $role->add_cap( ‘read_private_forums’ );

    $role->add_cap( ‘publish_topics’ );

    $role->add_cap( ‘edit_topics’ );

    $role->add_cap( ‘edit_others_topics’ );

    $role->add_cap( ‘delete_topics’ );

    $role->add_cap( ‘delete_others_topics’ );

    $role->add_cap( ‘publish_replies’ );

    $role->add_cap( ‘edit_replies’ );

    $role->add_cap( ‘edit_others_replies’ );

    $role->add_cap( ‘read_private_topics’ );

    $role->add_cap( ‘delete_replies’ );

    $role->add_cap( ‘delete_others_replies’ );

    $role->add_cap( ‘manage_topic_tags’ );

    $role->add_cap( ‘edit_topic_tags’ );

    $role->add_cap( ‘delete_topic_tags’ );

    $role->add_cap( ‘read_private_replies’ );

    $role->add_cap( ‘assign_topic_tags’ );

    $role->add_cap( ‘moderate’ );

    $role->add_cap( ‘throttle’ );

    $role->add_cap( ‘view_trash’ );

    }

    add_action( ‘admin_init’, ‘add_my_new_theme_caps’);

    function add_my_new_theme_caps2() {

    $role = get_role( ‘author’ ); // gets the editor role

    $role->add_cap( ‘publish_forums’ );

    $role->add_cap( ‘edit_forums’ );

    $role->add_cap( ‘delete_forums’ );

    $role->add_cap( ‘delete_others_forums’ );

    $role->add_cap( ‘read_private_forums’ );

    $role->add_cap( ‘publish_topics’ );

    $role->add_cap( ‘edit_topics’ );

    $role->add_cap( ‘edit_others_topics’ );

    $role->add_cap( ‘delete_topics’ );

    $role->add_cap( ‘delete_others_topics’ );

    $role->add_cap( ‘publish_replies’ );

    $role->add_cap( ‘edit_replies’ );

    $role->add_cap( ‘edit_others_replies’ );

    $role->add_cap( ‘read_private_topics’ );

    $role->add_cap( ‘delete_replies’ );

    $role->add_cap( ‘delete_others_replies’ );

    $role->add_cap( ‘manage_topic_tags’ );

    $role->add_cap( ‘edit_topic_tags’ );

    $role->add_cap( ‘delete_topic_tags’ );

    $role->add_cap( ‘read_private_replies’ );

    $role->add_cap( ‘assign_topic_tags’ );

    $role->add_cap( ‘moderate’ );

    $role->add_cap( ‘throttle’ );

    $role->add_cap( ‘view_trash’ );

    }

    add_action( ‘admin_init’, ‘add_my_new_theme_caps2’);

Viewing 1 replies (of 1 total)