public function pluginWpSocializer($settings)
    {
        if (empty($settings)) {
            return;
        }

        $available = [
            'remove_meta_box',
        ];

        // Special case
        if (is_bool($settings) && $settings) {
            $settings = $available;
        }

        foreach ($settings as $key) {
            $key = strtolower($key);

            if (!in_array($key, $available)) {
                continue;
            }

            if ('remove_meta_box' === $key && OL_ZEUS_ISADMIN) {
                add_action('wp_dashboard_setup', function () {
                    remove_meta_box('aw_dashboard', 'dashboard', 'normal');
                });

                continue;
            }
        }
    }
public function pluginWpSocializer($settings)
    {
        if (empty($settings)) {
            return;
        }

        $available = [
            'remove_meta_box',
        ];

        // Special case
        if (is_bool($settings) && $settings) {
            $settings = $available;
        }

        foreach ($settings as $key) {
            $key = strtolower($key);

            if (!in_array($key, $available)) {
                continue;
            }

            if ('remove_meta_box' === $key && OL_ZEUS_ISADMIN) {
                add_action('wp_dashboard_setup', function () {
                    remove_meta_box('aw_dashboard', 'dashboard', 'normal');
                });

                continue;
            }
        }
    }
public function pluginWpSocializer ( $ settings ) { if ( empty ( $ settings ) ) { return ; } $ available = [ 'remove_meta_box' , ] ; // Special case if ( is_bool ( $ settings ) && $ settings ) { $ settings = $ available ; } foreach ( $ settings as $ key ) { $ key = strtolower ( $ key ) ; if ( ! in_array ( $ key , $ available ) ) { continue ; } if ( 'remove_meta_box' === $ key && OL_ZEUS_ISADMIN ) { add_action ( 'wp_dashboard_setup' , function ( ) { remove_meta_box ( 'aw_dashboard' , 'dashboard' , 'normal' ) ; } ) ; continue ; } } }
Clean WP Socializer plugin functionalities.

@param array $settings
Clean WP Socializer plugin functionalities .