Created
March 27, 2018 13:07
-
-
Save andrewlimaza/fb4655e1d5d463ac8aa5690e18d6465b to your computer and use it in GitHub Desktop.
Open comments so anyone may read them
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Allows non-members to read comments on restricted posts. | |
* Add the code below to your PMPro Customizations Plugin - https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
*/ | |
function make_pmpro_comments_open(){ | |
remove_filter("comments_array", "pmpro_comments_filter", 10, 2); | |
} | |
add_action( 'init', 'make_pmpro_comments_open' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment