X7ROOT File Manager
Current Path:
/home/okeydcqc/pointecgroup.com/wp-content/plugins/wp-social/app
home
/
okeydcqc
/
pointecgroup.com
/
wp-content
/
plugins
/
wp-social
/
app
/
ðŸ“
..
📄
api-routes.php
(4.04 KB)
📄
avatar.php
(7.13 KB)
📄
counter-settings.php
(1.58 KB)
📄
legacy.php
(949 B)
📄
login-settings.php
(5.46 KB)
📄
providers.php
(14.95 KB)
📄
route.php
(829 B)
📄
settings.php
(6.45 KB)
📄
share-settings.php
(4.45 KB)
📄
share.php
(2.19 KB)
Editing: route.php
<?php namespace WP_Social\App; use WP_Social\Base\Api; class Route extends Api { public function config() { $this->prefix = 'settings'; $this->param = ""; } public function post_clear_counter_cache() { $data = $this->request->get_params(); if(!empty($data['provider'])) { $provider = sanitize_key($data['provider']); $username = isset($data['username']) ? sanitize_key($data['username']) : ''; if(delete_transient('_xs_social_' . $provider . '_count_' . $username)) { return [ 'success' => true, 'msg' => esc_html__('Cache cleared successfully!', 'wp-social') ]; } return [ 'success' => true, 'msg' => esc_html__('No cache found.', 'wp-social') ]; } return [ 'success' => true, 'msg' => esc_html__('Invalid data.', 'wp-social') ]; } }
Upload File
Create Folder