wpDiscuz - WordPress Comment Plugin
Clear all

Integration with Restrict Content Pro

Posts: 1
Topic starter
New Member
Joined: 4 months ago

Is there a way to add an integration with Restrict Content Pro to users who have a valid subscription? Ideally, only users with a valid subscription in RCP can view the comments. 


RCP provides the following documentation: Restricting Content in Template Files – iThemes Help Center


It would be great if there were an easy integration so that we did not have to manually edit the plugin's files. 

1 Reply
Posts: 3943
Support member
Joined: 4 years ago

Hi jbenes,

You should use the following code: 

<?php if ( rcp_user_has_active_membership() ) : ?>
     <?comments_template() ?>
<?php endif; ?>

Just modify your theme's single.php file. In other words, you'd need to replace the comments_template() with the code provided above in the current active theme single.php file.