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/buddypress.php
<?php

    /**
    * Compatibility     : BuddyPress
    * Introduced at     : 
    */

    if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
    
    class WPH_conflict_handle_BuddyPress
        {
                        
            static function init()
                {
                    if( !   self::is_plugin_active())
                        return false;
                                            
                    //adjust bp_core_avatar_url
                    add_filter('bp_core_avatar_url', array('WPH_conflict_handle_BuddyPress', 'bp_core_avatar_url'), 999);
                    
                }                        
            
            static function is_plugin_active()
                {
                    
                    include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
                    
                    if(is_plugin_active( 'buddypress/bp-loader.php' ))
                        return true;
                        else
                        return false;
                }
            
            static public function budypress()
                {   
                    
                               
                }
     
                
            static function bp_core_avatar_url( $url )
                {
                    global $wph;
                         
                    //do replacements for this url
                    $url    =   $wph->functions->content_urls_replacement( $url,  $wph->functions->get_replacement_list() );                    
                
                    return $url;
                    
                }    
                 
            
                            
        }


?>