HEX
Server: Apache
System: Linux vpshost0650.publiccloud.com.br 4.4.79-grsec-1.lc.x86_64 #1 SMP Wed Aug 2 14:18:21 -03 2017 x86_64
User: bandeirantesbomb3 (10068)
PHP: 8.0.7
Disabled: apache_child_terminate,dl,escapeshellarg,escapeshellcmd,exec,link,mail,openlog,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,php_check_syntax,php_strip_whitespace,popen,proc_close,proc_open,shell_exec,symlink,system
Upload Files
File: /home/goremar3/public_html/wp-content/plugins/wp-social/inc/custom-function.php
<?php

if (!defined('ABSPATH')) die('Forbidden');

/**
 * These are mostly for other plugin, like woocommerce share product widget
 *
 */


if(!function_exists('__wp_social_api_share')) {

	function __wp_social_api_share($providers, $attributes = []) {

		if(empty($providers)) {

			return '';
		}

		if($providers === 'all') {

			$out_provider = \WP_Social\App\Share_Settings::instance()->get_enabled_providers();

		} else {

			$providers = explode(',', $providers);
			$p_conf = \WP_Social\App\Share_Settings::instance()->get_enabled_providers();
			$out_provider = [];

			foreach($providers as $provider) {

				$provider = trim($provider);

				if(isset($p_conf[$provider]) && !empty($p_conf[$provider]['enable'])) {

					$out_provider[$provider] = $p_conf[$provider];
				}
			}
		}

		$share = new \WP_Social\App\Share();

		return $share->get_share_primary_content($out_provider, $attributes);
	}
}


if(!function_exists('__wp_social_share')) {

	function __wp_social_share($provider = 'all', $atts = []) {
		if(class_exists('\WP_Social\Inc\Share')) {
			$return = new \WP_Social\Inc\Share(false);

			return $return->get_share_data($provider, $atts);
		}
	}
}

if(!function_exists('__wp_social_share_pro_check')) {
	function __wp_social_share_pro_check() {
		$option_key     = 'xs_share_providers_data';
		$xsc_options    = get_option($option_key) ? get_option($option_key) : [];
		$share_provider = isset($xsc_options['social']) ? $xsc_options['social'] : [];

		foreach($share_provider AS $kk => $vv):
			if(isset($share_provider[$kk]['enable'])) {
				return true;
			}
		endforeach;

		return false;
	}
}