PluginProbe
User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor / 4.0.3
User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor v4.0.3
4.0.3 4.0.2 4.0.1 4.0.0 3.16.6 3.16.5 3.16.4 3.16.3 3.16.2 3.16.1 3.16.0 3.15.9 3.9.9 3.9.5 3.9.6 3.9.7 3.9.8 1.1.7 1.1.8 1.1.9 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 All 341 releases
profile-builder / assets / misc / divi / includes / modules / content-restriction-end / content-restriction-end.php

content-restriction-end.php in User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor 4.0.3, at assets/misc/divi/includes/modules/content-restriction-end/content-restriction-end.php

35 lines 951 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 class WPPB_Content_Restriction_End extends ET_Builder_Module {
4
5 public $slug = 'wppb_content_restriction_end';
6 public $vb_support = 'on';
7
8 protected $module_credits = array(
9 'module_uri' => 'https://wordpress.org/plugins/profile-builder/',
10 'author' => 'Cozmoslabs',
11 'author_uri' => 'https://www.cozmoslabs.com/',
12 );
13
14 public function init() {
15 $this->name = esc_html__( 'PB Content Restriction End', 'profile-builder' );
16
17 $this->advanced_fields = array(
18 'link_options' => false,
19 'background' => false,
20 'admin_label' => false,
21 );
22 }
23
24 public function render( $attrs, $content, $render_slug ) {
25 return;
26 }
27 }
28
29 global $content_restriction_activated;
30 global $wp_version;
31 if ( isset( $content_restriction_activated ) && $content_restriction_activated == 'yes' && version_compare( $wp_version, "5.0.0", ">=" ) ) {
32 new WPPB_Content_Restriction_End;
33 }
34
35