Limiting buddy press features based on membership level (PMPro)

Our docs are here: https://www.paidmembershipspro.com/add-ons/buddypress-integration/ When you edit a membership level, for the “unlock BuddyPress” settings, choose the “Yes – Give members access to specific features” option and it will show checkboxes for each BuddyPress module. This should work. Make sure the general settings for non-members are locking down everything.

How to add add blank non-editable wp page like default blog for use with plugin

You can do it by hooking admin_init action: First, you can create a option to select the page you create for your plugin. I suppose that the option will be save in wp_options table with name your_plugin_special_page. Remove editor support on that page with this action. add_action( ‘admin_init’, ‘your_plugin_hide_editor’ ); function your_plugin_hide_editor() { // Get … Read more

How to create multiple pages for PDFs

If you really want to include them in a page, you could create a page template which pulls in the requested PDF by ID. So for example, you create the Page www.example.com/pdf/ and add a query string so when someone visits www.example.com/pdf/?id=234 they see the PDF which has a post ID of 234. Within the … Read more

Fatal error when activating my custom wordpress plugin

What I conclude form your comments is pethouseuk-functionality.php include ‘AlterTableComments.php’; use PethouseukFunctionality\AlterTable; $a=”PethouseukFunctionality\AlterTable\test”; $a(); // function call $b = ‘PethouseukFunctionality\AlterTable\AlterTableComments’; $c = new $b; // new object $c->yourfunction(‘test’); // Method call Another file AlterTableComments.php <?php namespace PethouseukFunctionality\AlterTable; interface AlterTableInterface{ function yourfunction($param); } class AlterTableComments implements AlterTableInterface{ function yourfunction($param){ var_dump($param); } } function test(){ echo ‘this … Read more