: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* Class for converting user sub attribute from Twitter API v1.1 to v2.
* @package twitter-api-v2
namespace TwitterFeed\V2;
if (! defined('ABSPATH')) {
class UserAdapter extends Adapter {
public function getMappedFields()
'screen_name' => 'username',
'profile_image_url_https' => 'profile_image_url',
'followers_count' => [ 'public_metrics', 'followers_count' ],
'statuses_count' => [ 'public_metrics', 'tweet_count' ],