HEX
Server: LiteSpeed
System: Linux emerald.serverdnsnetwork.com 5.14.0-611.5.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 08:09:09 EST 2025 x86_64
User: mahdetej (1135)
PHP: 8.1.34
Disabled: show_source, system, shell_exec, passthru, exec, popen, proc_open
Upload Files
File: /home/mahdetej/public_html/wp-content/plugins/enable-media-replace/classes/external/siteorigin.php
<?php
namespace EnableMediaReplace\Externals;


class SiteOrigin
{
	 protected static $instance;

	 public function __construct()
	 {
		  if (defined('SITEORIGIN_PANELS_VERSION'))
			{
				add_filter('emr/replacer/option_fields', array($this, 'addOption'));
			}
	 }

	 public static function getInstance()
	 {
		  if (is_null(self::$instance))
			{
				 self::$instance = new SiteOrigin();
			}

			return self::$instance;
	 }

	 public function addOption($options)
	 {
		  $options[] = 'widget_siteorigin-panels-builder';
			return $options;
	 }
} // class