WordPress.org

Forums

Campaign Contributor Roles (2 posts)

  1. artpreneurs
    Member
    Posted 11 months ago #

    Hi

    we are setting up a crowdfunding site with franklin crowdfunding theme and we have EDD plugin installed & Astoundify appthemer crowdfunding plugin aswell

    We’re looking into appthemer files, we found this argument in the roles, it gives the contributor not subscriber the right to edit etc. if we change this or add another one replacing contributor with subscriber or something will it work?

    if ( is_object( $wp_roles ) ) { $wp_roles->add_cap( ‘campaign_contributor’, ‘submit_campaigns’ ); $wp_roles->add_cap( ‘campaign_contributor’, ‘edit_product’ ); $wp_roles->add_cap( ‘campaign_contributor’, ‘edit_products’ ); $wp_roles->add_cap( ‘campaign_contributor’, ‘delete_product’ ); $wp_roles->add_cap( ‘campaign_contributor’, ‘delete_products’ ); $wp_roles->add_cap( ‘campaign_contributor’, ‘publish_products’ ); $wp_roles->add_cap( ‘campaign_contributor’, ‘edit_published_products’ ); $wp_roles->add_cap( ‘campaign_contributor’, ‘assign_product_terms’ );

  2. artpreneurs
    Member
    Posted 11 months ago #

    we changed it to subscriber and it worked no need to help it is resolved thank you

Reply

You must log in to post.

About this Topic