X7ROOT File Manager
Current Path:
/home/okeydcqc/pointecgroup.com/wp-content/plugins/wp-social/inc
home
/
okeydcqc
/
pointecgroup.com
/
wp-content
/
plugins
/
wp-social
/
inc
/
ðŸ“
..
📄
.htaccess
(127 B)
📄
admin-create-shortcode.php
(293 B)
📄
admin-create-user.php
(20.81 KB)
📄
admin-custom-function.php
(3.97 KB)
📄
admin-rest-api.php
(2.24 KB)
📄
admin-settings.php
(27.06 KB)
📄
admin-social-button.php
(13.44 KB)
📄
admin-social-enque-script.php
(6 B)
📄
counter-widget.php
(6.66 KB)
📄
counter.php
(15.69 KB)
📄
custom-function.php
(1.59 KB)
ðŸ“
elementor
📄
login-widget.php
(3.35 KB)
📄
login.php
(2.02 KB)
📄
share-widget.php
(6.91 KB)
📄
share.php
(16.68 KB)
Editing: 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; } }
Upload File
Create Folder