The effects of alcohol on
sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Integration with Restrict Content Pro
✦ Summarize Topic
✦
✦
✦
AI is analyzing the discussion...
(@jbenes)
Posts: 4
Active Member
Topic starter
Translate
▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
Show original
Translating...
[#2704]
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.
Posted : 10/08/2021 6:26 am
(@asti)
Posts: 8262
Illustrious Member Support
Translate
▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
Show original
Translating...
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.
In case you want to say thank you! 🙂
We'd really appreciate if you leave a good review on the plugin page.
This is the best way to say thank you to this project and the support team.
Posted : 11/08/2021 1:33 pm
Super Globals
Options and Features