PluginProbe
Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More / 2.6.1
Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More v2.6.1
trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.10 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 2.0.0 2.0.1 2.0.10 2.0.11 2.0.12 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 All 47 releases
← All changes | classes/Controllers/Compatibility/Elementor.php +9 -0 2.0.122.6.1 View file →
@@ -25,8 +25,17 @@
25 25 add_filter( 'content_control/protection_is_disabled', [ $this, 'protection_is_disabled' ] );
26 26 }
27 27
28 28 /**
29 + * Check if controller is enabled.
30 + *
31 + * @return bool
32 + */
33 + public function controller_enabled() {
34 + return class_exists( '\Elementor\Plugin' ) || did_action( 'elementor/loaded' );
35 + }
36 +
37 + /**
29 38 * Conditionally disable Content Control for Elementor builder.
30 39 *
31 40 * @param boolean $is_disabled Whether protection is disabled.
32 41 * @return boolean