Use custom Twitter app credentials

To use custom Twitter API credentials, add the following code snippet towards the end of your child theme’s functions.php

/**
 * Snippet to override Twitter credentials for Automator.
 * @link https://docs.automatorplugin.com/reference/snippets/change-twitter-api-credentials/
 */
add_filter(
	'automator_twitter_api_call',
	function ( $params ) {
		$params['body']['api_key']            = 'my_api_key';
		$params['body']['api_secret']         = 'my_api_secret';
		$params['body']['oauth_token']        = 'my_access_token';
		$params['body']['oauth_token_secret'] = 'my_access_token_secret';
		return $params;
	},
	99,
	1
);

To get the credentials, you need to create an app here and then go to the “Keys and Tokens” tab.