PluginProbe
Membership Plugin – Kadence Memberships / 2.1
Membership Plugin – Kadence Memberships v2.1
4.0.3 4.0.2 4.0.1 trunk 1.1 1.2 1.2.1 1.2.2 2.0 2.0.2 2.0.3 2.0.4 2.1 2.1.1 2.1.2 2.1.3 2.2 2.2.1 2.2.10 2.2.2 2.2.3 2.2.4 2.2.5 2.2.7 2.2.8 All 72 releases
restrict-content / restrictcontent.php

restrictcontent.php in Membership Plugin – Kadence Memberships 2.1, at restrictcontent.php

49 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 Plugin Name: Restrict Content
4 Plugin URL: http://pippinsplugins.com/restricted-content-plugin-free/
5 Description: Restrict Content to registered users only. This is a simple plugin that will allow you to easily restrict complete posts / pages to logged in users only.
6 Version: 2.1
7 Author: Pippin Williamson
8 Author URI: http://pippinsplugins.com
9 Contributors: mordauk
10 Tags: Restrict content, member only, registered, logged in, restricted access, restrict access, limiit access, read-only, read only
11 */
12
13
14 /*******************************************
15 * global variables
16 *******************************************/
17
18 // load the plugin options
19 $rc_options = get_option( 'rc_settings' );
20
21 if(!defined('RC_PLUGIN_DIR'))
22 define('RC_PLUGIN_DIR', dirname(__FILE__));
23
24
25 function rc_textdomain() {
26
27 // Set filter for plugin's languages directory
28 $rc_lang_dir = dirname( plugin_basename( __FILE__ ) ) . '/languages/';
29 $rc_lang_dir = apply_filters( 'rc_languages_directory', $rc_lang_dir );
30
31 // Load the translations
32 load_plugin_textdomain( 'restrict-content', false, $rc_lang_dir );
33 }
34 add_action('init', 'rc_textdomain');
35
36
37
38 /*******************************************
39 * file includes
40 *******************************************/
41
42 include(RC_PLUGIN_DIR . '/includes/settings.php');
43 include(RC_PLUGIN_DIR . '/includes/shortcodes.php');
44 include(RC_PLUGIN_DIR . '/includes/metabox.php');
45 include(RC_PLUGIN_DIR . '/includes/display-functions.php');
46 include(RC_PLUGIN_DIR . '/includes/feed-functions.php');
47 include(RC_PLUGIN_DIR . '/includes/user-checks.php');
48
49