| Server IP : 172.67.134.116 / Your IP : 216.73.217.22 Web Server : Apache System : Linux server.rehabsharif.com 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64 User : nobi37te ( 1003) PHP Version : 8.2.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/nobi37te/public_html/wp-content/plugins/nitropack/classes/Integration/Plugin/ |
Upload File : |
<?php
namespace NitroPack\Integration\Plugin;
class WPBakeryNP {
const STAGE = "late";
public static function isActive() {
global $vc_manager;
$activePlugins = apply_filters('active_plugins', get_option('active_plugins'));
if ($vc_manager || in_array( 'js_composer/js_composer.php', $activePlugins )) {
return true;
}
return false;
}
public function init($stage) {
if ( ! WPBakeryNP::isActive() ) {
return;
}
add_action('update_option_wpb_js_custom_css', array ($this, 'purge_cache_on_custom_css_update') );
}
public function purge_cache_on_custom_css_update() {
nitropack_sdk_purge(NULL, NULL, 'WPBakery Custom CSS Updated');
}
}