PluginProbe
Visual Composer Website Builder / 45.16.4
Visual Composer Website Builder v45.16.4
45.16.4 45.16.3 45.16.2 45.16.1 45.2-beta.1 45.2-beta.2 45.2.0 45.3-beta.1 45.3.0 45.4-beta.1 45.4.0 45.4.1 45.4.1-beta.2 45.5-beta.1 45.5.0 45.6-beta.1 45.6.0 45.7-beta.1 45.7.0 45.8-beta.1 45.8.0 45.9.0 trunk 45.0 45.0-beta.1 All 42 releases
visualcomposer / visualcomposer / Modules / Vendors / Plugins / NextGenController.php

NextGenController.php in Visual Composer Website Builder 45.16.4, at visualcomposer/Modules/Vendors/Plugins/NextGenController.php

36 lines 868 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace VisualComposer\Modules\Vendors\Plugins;
4
5 if (!defined('ABSPATH')) {
6 header('Status: 403 Forbidden');
7 header('HTTP/1.1 403 Forbidden');
8 exit;
9 }
10
11 use VisualComposer\Framework\Container;
12 use VisualComposer\Framework\Illuminate\Support\Module;
13 use VisualComposer\Helpers\Traits\WpFiltersActions;
14
15 /**
16 * Backward compatibility with "NextGEN Gallery" wordPress plugin.
17 *
18 * @see https://wordpress.org/plugins/nextgen-gallery/
19 */
20 class NextGenController extends Container implements Module
21 {
22 use WpFiltersActions;
23
24 public function __construct()
25 {
26 $this->wpAddAction('plugins_loaded', 'initialize');
27 }
28
29 protected function initialize()
30 {
31 if (defined('NGG_PLUGIN_VERSION') && constant('NGG_PLUGIN_VERSION')) {
32 $this->wpAddFilter('run_ngg_resource_manager', '__return_false');
33 }
34 }
35 }
36