HEX
Server: Apache/2.4.65 (Debian)
System: Linux kubikelcreative 5.10.0-35-amd64 #1 SMP Debian 5.10.237-1 (2025-05-19) x86_64
User: www-data (33)
PHP: 8.4.13
Disabled: NONE
Upload Files
File: /var/www/indoadvisory/wp/wp-content/plugins/wp-hide-security-enhancer/compatibility/wepos.php
<?php

    /**
    * Compatibility: wePOS
    * Introduced at: 1.1.1
    */

    if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
    
    class WPH_conflict_handle_wepos
        {
                        
            var $wph;
                           
            function __construct()
                {
                    if( !   $this->is_plugin_active())
                        return FALSE;
                    
                    global $wph;
                    
                    $this->wph  =   $wph; 
                        
                    add_filter( 'wp', array( $this , 'wp' ), 1 );   
                }                        
            
            static function is_plugin_active()
                {
                    
                    include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
                    
                    if( is_plugin_active( 'wepos/wepos.php' ) )
                        return TRUE;
                        else
                        return FALSE;
                }
            
            function wp( )
                {
                    if ( ! wepos_is_frontend() )
                        return;
                              
                    add_filter ('wph/components/wp_oembed_add_discovery_links',                 '__return_false');
                    add_filter ('wph/components/wp_oembed_add_host_js',                         '__return_false');    
                }
        }
        
    new WPH_conflict_handle_wepos();


?>