X7ROOT File Manager
Current Path:
/home/okeydcqc/public_html/wp-content/plugins/wp-social/lib/provider/share
home
/
okeydcqc
/
public_html
/
wp-content
/
plugins
/
wp-social
/
lib
/
provider
/
share
/
ðŸ“
..
📄
digg-sharer.php
(1018 B)
📄
email-sharer.php
(1019 B)
📄
facebook-messenger-sharer.php
(1.01 KB)
📄
facebook-sharer.php
(1022 B)
📄
kik-sharer.php
(1017 B)
📄
linkedin-sharer.php
(1022 B)
📄
no-provider-share.php
(239 B)
📄
pinterest-sharer.php
(1023 B)
📄
reddit-sharer.php
(1020 B)
📄
share-interface.php
(275 B)
📄
sharer.php
(1.48 KB)
📄
skype-sharer.php
(1019 B)
📄
stumbleupon-sharer.php
(1 KB)
📄
telegram-sharer.php
(1022 B)
📄
trello-sharer.php
(1020 B)
📄
twitter-sharer.php
(1021 B)
📄
viber-sharer.php
(1019 B)
📄
whatsapp-sharer.php
(1022 B)
Editing: sharer.php
<?php namespace WP_Social\Lib\Provider\Share; defined('ABSPATH') || exit; abstract class Sharer implements Share_Interface { protected $global_options; protected $key; protected $post_id; protected $tracking_url; protected $option_key; protected $url_hash; public function __construct($post_id = 0, $key = '') { $this->key = $key; $this->post_id = $post_id; $this->tracking_url = get_permalink($this->post_id); } protected function get_transient_key() { $md5 = md5($this->tracking_url . $this->post_id); return 'xs_sharer_' . $this->post_id . '_' . $this->key . '_' . $md5; } public function need_to_call_legacy_function() { return false; } public function set_config_data($conf_array = []) { $this->global_options = $conf_array; return $this; } public function set_uri_hash($hash) { $this->url_hash = $hash; return $this; } protected function get_option_key() { return 'xs_shared_count__' . $this->key . '_' . $this->url_hash; } protected function get_meta_key() { return 'xs_shared_count_' . intval($this->post_id) . '_' . $this->key; } public function increase_share_count_by_one() { $opt_key = $this->get_meta_key(); $old = get_post_meta($this->post_id, $opt_key, true); $count = intval($old) + 1; return update_post_meta($this->post_id, $opt_key, $count); } public function get_url_share_count() { $opt_key = $this->get_meta_key(); $old = get_post_meta($this->post_id, $opt_key, true); return intval($old); } }
Upload File
Create Folder