PrivateContent Plugin
API Documentation
Earn creating your add-ons!
PrivateContent is totally opened to developers and coded to be extended.
Being a membership plugin, there is plenty of useful implementations and tweaks and this is here's the new big deal!
With a solid base of thousands of customers using it daily, PrivateContent is one of the
Want to join PrivateContent add-ons creation but need an idea to start from or want to ask something?
Get in touch at support [at] lcweb.it to know what customers need right now!
Add-on creation - Quickstart
Here's the base code used in LCweb add-ons. Feel free to use it as base, to build your awesomeness.
<?php
/*
Plugin Name: PrivateContent - Your Add-on Name
Plugin URI:
Description:
Author:
Version: x.xx
Author URI:
*/
// CHECK IF PRIVATECONTENT V5 IS ACTIVE
include_once( ABSPATH .'wp-admin/includes/plugin.php' );
if(!is_plugin_active('private-content/private_content.php') && !is_plugin_active('pvtcontent_bundle/pvtcontent_bundle.php')) {
// not active - shut down add-on and show an admin notice
function no_plugin_warning() {
echo '
Please activate PrivateContent plugin to use the add-on
';
}
add_action('admin_notices', 'no_plugin_warning');
}
else {
// add-on codes - do your best!
}