| Server IP : 82.64.35.208 / Your IP : 192.168.65.1 Web Server : Apache/2.4.68 (Debian) System : Linux 079bc81edf51 6.12.76-linuxkit #1 SMP Tue Jul 21 14:38:37 UTC 2026 aarch64 User : root ( 0) PHP Version : 8.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/html/wp-content/plugins/custom-twitter-feeds/inc/V2/ |
Upload File : |
<?php
/**
* Class for converting user sub attribute from Twitter API v1.1 to v2.
*
* @package twitter-api-v2
*/
namespace TwitterFeed\V2;
// Don't load directly.
if (! defined('ABSPATH')) {
die('-1');
}
/**
* UserAdapter class.
*/
class UserAdapter extends Adapter {
/**
* Get mapped fields.
*
* @return array
*/
public function getMappedFields()
{
return [
'screen_name' => 'username',
'profile_image_url_https' => 'profile_image_url',
'followers_count' => [ 'public_metrics', 'followers_count' ],
'statuses_count' => [ 'public_metrics', 'tweet_count' ],
'utc_offset' => '',
];
}
}