Title: Autopost for X (formerly Autoshare for Twitter)
Author: 10up
Published: <strong>January 16, 2020</strong>
Last modified: June 24, 2026

---

Search plugins

![](https://ps.w.org/autoshare-for-twitter/assets/banner-772x250.png?rev=3017651)

![](https://ps.w.org/autoshare-for-twitter/assets/icon.svg?rev=3017651)

# Autopost for X (formerly Autoshare for Twitter)

 By [10up](https://profiles.wordpress.org/10up/)

[Download](https://downloads.wordpress.org/plugin/autoshare-for-twitter.2.3.3.zip)

 * [Details](https://wordpress.org/plugins/autoshare-for-twitter/#description)
 * [Reviews](https://wordpress.org/plugins/autoshare-for-twitter/#reviews)
 *  [Installation](https://wordpress.org/plugins/autoshare-for-twitter/#installation)
 * [Development](https://wordpress.org/plugins/autoshare-for-twitter/#developers)

 [Support](https://wordpress.org/support/plugin/autoshare-for-twitter/)

## Description

Autopost for X (formerly Autoshare for Twitter) automatically shares your posts 
to X/Twitter as soon as they’re published. Once you hit the Publish button, the 
plugin sends your post’s title, featured image, and link to X/Twitter, along with
a custom message.

Unlike a myriad of other social media, multitool solutions, Autopost for X is built
solely for X/Twitter. It focuses on doing one thing and does it well, with the code
and interface craftsmanship we apply to every project.

With Autopost for X, developers can further customize nearly everything about the
posts, including the image, author, and link, using an extensive set of hooks built
into the code. Among its other features, the WordPress plugin:

 * Works in both the classic and new block editors.
 * Becomes part of the pre-publish checklist step that’s part of the new block editor.
 * Posts a high-quality featured image with your post to X/Twitter.
 * Counts characters to keep you under the X/Twitter limit.
 * Adds a link to the post to X/Twitter in the block editor sidebar.

**Disclaimer:** _TWITTER, TWEET, RETWEET and the Twitter logo are trademarks of 
Twitter, Inc. or its affiliates._

### Paid API Access

In early 2026, X effectively [removed free API access](https://devcommunity.x.com/t/announcing-the-launch-of-x-api-pay-per-use-pricing/256476)
for all users except public utilities.

Most users will now require paid API access via the [X Developer Console](https://console.x.com/).

### Plugin Compatibility

#### Distributor

When using with 10up’s [Distributor plugin](https://github.com/10up/distributor),
posts that are distributed will not be autoposted if they are already posted to 
X/Twitter from the origin site. Autopost for X tracks posts that have been posted
to X/Twitter in post meta to avoid “double posting”. To avoid this behavior, use
the `dt_blacklisted_meta` filter to exclude the ‘autoshare_for_twitter_status’ meta
value from being distributed :

    ```
    add_filter( 'dt_blacklisted_meta', function( $blacklisted_metas ) {
        $blacklisted_metas[] = 'autoshare_for_twitter_status';
        return $blacklisted_metas;
    } )
    ```

### Developers

**Note:** Posts and pages are supported by default. Developers can use the `autoshare_for_twitter_default_post_types`
filter to change the default supported post types

Custom post types can now be opted into autopost features like so:

    ```
    function opt_my_cpt_into_autoshare() {
        add_post_type_support( 'my-cpt', 'autoshare-for-twitter' );
    }
    add_action( 'init', 'opt_my_cpt_into_autoshare' );
    ```

In addition, adding support while registering custom post types also works. Post
types are automatically set to autopost. Future versions of this plugin could allow
this to be set manually.

While the autopost feature can be opted into for post types using the above filter,
by default the editor still has to manually enable autopost during the post prepublish
flow. The `autoshare_for_twitter_enabled_default` filter allows autopost to be enabled
by default for all posts of a given post type. Editors can still manually uncheck
the option during the publishing flow.

Example:

    ```
    function enable_autoshare_by_default_for_core_post_type( $enabled, $post_type ) {
        if ( 'post' === $post_type ) {
            return true;
        }

        return $enabled;
    }
    add_filter( 'autoshare_for_twitter_enabled_default', 'enable_autoshare_by_default_for_core_post_type', 10, 2 );
    ```

Additional technical details can be found in [our GitHub repository](https://github.com/10up/autoshare-for-twitter#overview).

## Screenshots

[⌊Create post screen with Autopost for X/Twitter options.⌉⌊Create post screen with
Autopost for X/Twitter options.⌉[

Create post screen with Autopost for X/Twitter options.

[⌊Published post screen with Autopost for X/Twitter options.⌉⌊Published post screen
with Autopost for X/Twitter options.⌉[

Published post screen with Autopost for X/Twitter options.

[⌊Autopost for X/Twitter sidebar panel.⌉⌊Autopost for X/Twitter sidebar panel.⌉[

Autopost for X/Twitter sidebar panel.

[⌊Autopost for X/Twitter Settings, found under Settings > Autopost for X/Twitter.⌉⌊
Autopost for X/Twitter Settings, found under Settings > Autopost for X/Twitter.⌉[

Autopost for X/Twitter Settings, found under `Settings` > `Autopost for X/Twitter`.

## Installation

 1. Install the plugin via the plugin installer, either by searching for it or uploading
    a .ZIP file.
 2. Activate the plugin.
 3. Save X/Twitter connection settings, found under `Settings` > `Autopost for X`.

## FAQ

### Does this plugin work with Gutenberg?

Yes, yes it does! For more details on this, see [#44](https://github.com/10up/autoshare-for-twitter/pull/44).

### Does the plugin work with X/Twitter API V2?

Yes, the plugin is compatible with X/Twitter API v2.

### I’m encountering the error message “401: Unauthorized.” What could be the possible reason for this error?

There are a few potential reasons for this error:
 1. **Incorrect X/Twitter API 
credentials**: Please ensure that you have entered the correct X/Twitter API credentials.
2. **Deprecated access levels**: If you are still using the old X/Twitter access
levels (Standard (v1.1), Essential (v2), Elevated (v2), etc…), you must migrate 
to the new access levels (Free, Basic, Pro, etc.). Please make sure to migrate to
the new access levels to ensure uninterrupted functionality. Here’s how you can 
do it:

    ```
    1. Go to the following URL: https://developer.twitter.com/en/portal/products
    2. Look for the "Downgrade" button.
    3. Click on it to migrate to the free access level.
    ```

### I’m encountering the error message “429: Too Many Requests.” What could be the possible reason for this error?

If you’re seeing the error message “429: Too Many Requests” it indicates that you
have exceeded the usage limits of X/Twitter’s Free API access. With the Free API,
you are allowed **500 requests per month** and **17 requests within a 24-hour period**.
Please note that these limits were accurate at the time of writing and may have 
been updated. For the most up-to-date information, please refer to the X API [documentation](https://developer.x.com/en/docs/x-api/rate-limits).
Since you have surpassed the daily limit, we kindly advise waiting for 24 hours 
before attempting to post again.

To avoid encountering this error in the future and to have higher usage limits, 
we recommend considering a subscription to either the Basic or Pro access level.
These access levels provide increased quotas and additional benefits to accommodate
your needs. For more information on X/Twitter API access levels, you can visit this
link: https://developer.x.com/en/products/x-api.

### Where do I report security bugs found in this plugin?

Please report security bugs found in the source code of the Autoshare for Twitter
plugin through the [Patchstack Vulnerability Disclosure  Program](https://patchstack.com/database/vdp/9e5fba6a-26c2-4dd7-a2ae-b8628c65835e).
The Patchstack team will assist you with verification, CVE assignment, and notify
the developers of this plugin.

## Reviews

![](https://secure.gravatar.com/avatar/14c70de1c69a3922c513021f1af37e63585a39c35601fc527bf9e81c52bcb5cd?
s=60&d=retro&r=g)

### 󠀁[Professional](https://wordpress.org/support/topic/professional-39/)󠁿

 [yeknafar](https://profiles.wordpress.org/yeknafar/) July 7, 2025 1 reply

I really liked it. I hoped it had a help video file for start too. Thanks

![](https://secure.gravatar.com/avatar/9be6a408255cab100b39b076e9e46a7e6e033d43ff5fa5ffdb3cd576f3c41358?
s=60&d=retro&r=g)

### 󠀁[It works and has nice documentation](https://wordpress.org/support/topic/it-works-and-has-nice-documentation/)󠁿

 [justinwyllie](https://profiles.wordpress.org/justinwyllie/) November 16, 2024 
1 reply

The documentation on how to connect it to a free developer account is very clear
and accurate. Very welcome to see such nice documentation.

![](https://secure.gravatar.com/avatar/d2387078603d938b7a4f15f8bfb091bcdab37d665c346f4016de7f6bc620d6b3?
s=60&d=retro&r=g)

### 󠀁[Works great with 2.0](https://wordpress.org/support/topic/works-great-with-2-0/)󠁿

 [mattwillms](https://profiles.wordpress.org/mattwillms/) June 14, 2023 1 reply

This plugin is working with the new Twitter API changes. What a lifesaver!

![](https://secure.gravatar.com/avatar/d0981421dcc574e7c6da0292cad5dd372f5221e004d8a2a52c622306beadae05?
s=60&d=retro&r=g)

### 󠀁[The best twitter plugin in 2023](https://wordpress.org/support/topic/the-best-twitter-plugin-in-2023/)󠁿

 [alhalkab](https://profiles.wordpress.org/alhalkab/) June 12, 2023 1 reply

Excellent! Thanks

![](https://secure.gravatar.com/avatar/a4798fd487d0fc17ecb944ca5ae66ca7f04aa3b271e3728d7bf932e2cdaf675d?
s=60&d=retro&r=g)

### 󠀁[Works perfect!](https://wordpress.org/support/topic/works-perfect-1037/)󠁿

 [ibiza69](https://profiles.wordpress.org/ibiza69/) June 1, 2023 1 reply

This plugin works incredibly well, including new Twiiter v2 API. Support its really
quick, professional, polite, kind and patient. It has being a joy to meet this developer.
Thank you!!

![](https://secure.gravatar.com/avatar/9ca10fff4ecce3f5bac480aa6e95c972c4bdcc1508eb351356294efc557b4149?
s=60&d=retro&r=g)

### 󠀁[Love it! Works perfectly](https://wordpress.org/support/topic/love-it-works-perfectly-2/)󠁿

 [Kori Ashton](https://profiles.wordpress.org/webtegrity/) April 26, 2020

Did a full review of this plugin on my YouTube channel. There are several steps 
to getting it securely linked to your Twitter account, but there are step-by-step
instructions on how to do that successfully. Loved it and highly recommend it.

 [ Read all 6 reviews ](https://wordpress.org/support/plugin/autoshare-for-twitter/reviews/)

## Contributors & Developers

“Autopost for X (formerly Autoshare for Twitter)” is open source software. The following
people have contributed to this plugin.

Contributors

 *   [ 10up ](https://profiles.wordpress.org/10up/)
 *   [ John Watkins ](https://profiles.wordpress.org/johnwatkins0/)
 *   [ Adam Silverstein ](https://profiles.wordpress.org/adamsilverstein/)
 *   [ Scott Lee ](https://profiles.wordpress.org/scottlee/)
 *   [ Tung Du ](https://profiles.wordpress.org/dinhtungdu/)
 *   [ Jeffrey Paul ](https://profiles.wordpress.org/jeffpaul/)
 *   [ Dharmesh Patel ](https://profiles.wordpress.org/dharm1025/)

[Translate “Autopost for X (formerly Autoshare for Twitter)” into your language.](https://translate.wordpress.org/projects/wp-plugins/autoshare-for-twitter)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/autoshare-for-twitter/),
check out the [SVN repository](https://plugins.svn.wordpress.org/autoshare-for-twitter/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/autoshare-for-twitter/)
by [RSS](https://plugins.trac.wordpress.org/log/autoshare-for-twitter/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 2.3.3 – 2026-02-02

 * **Fixed:** Bug preventing the autosharing of posts from working on scheduled 
   posts (props [@justinmaurerdotdev](https://github.com/justinmaurerdotdev), [@peterwilsoncc](https://github.com/peterwilsoncc),
   [@dkotter](https://github.com/dkotter) via [#399](https://github.com/10up/autoshare-for-twitter/pull/399)).

#### 2.3.2 – 2026-01-29

**Note that this version bumps the WordPress minimum supported version from 6.6 
to 6.8.**

 * **Security:** Fix access control issue for retweeting (props [@nblirwn](https://github.com/nblirwn),
   [@dkotter](https://github.com/dkotter), [@peterwilsoncc](https://github.com/peterwilsoncc),
   [@jeffpaul](https://github.com/jeffpaul) via [GHSA-9j39-fp7c-5453](https://github.com/10up/autoshare-for-twitter/security/advisories/GHSA-9j39-fp7c-5453)).
 * **Added:** Support for the WordPress.org plugin preview (props [@dkotter](https://github.com/dkotter),
   [@iamdharmesh](https://github.com/iamdharmesh), [@jeffpaul](https://github.com/jeffpaul)
   via [#297](https://github.com/10up/autoshare-for-twitter/pull/297)).
 * **Changed:** Bumped WordPress “tested up to” version 6.9 (props [@peterwilsoncc](https://github.com/peterwilsoncc),
   [@dkotter](https://github.com/dkotter) via [#390](https://github.com/10up/autoshare-for-twitter/pull/390)).
 * **Changed:** Bumped WordPress minimum supported version from 6.6 to 6.8 (props
   [@jeffpaul](https://github.com/jeffpaul) via [#397](https://github.com/10up/autoshare-for-twitter/pull/397)).
 * **Changed:** Updated npm dependencies via `npm audit fix` (props [@peterwilsoncc](https://github.com/peterwilsoncc),
   [@dkotter](https://github.com/dkotter) via [#392](https://github.com/10up/autoshare-for-twitter/pull/392)).
 * **Fixed:** Clear tweet text field only after post publish completes in block 
   editor (props [@chandrapatel](https://github.com/chandrapatel), [@iamdharmesh](https://github.com/iamdharmesh)
   via [#378](https://github.com/10up/autoshare-for-twitter/pull/378)).

#### 2.3.1 – 2025-07-14

**Note that this version bumps the WordPress minimum supported version from 6.5 
to 6.6.**

 * **Changed:** Bump WordPress “tested up to” version 6.8 (props [@Sourabh208](https://github.com/Sourabh208),
   [@iamdharmesh](https://github.com/iamdharmesh), [@jeffpaul](https://github.com/jeffpaul)
   via [#367](https://github.com/10up/autoshare-for-twitter/pull/367), [#370](https://github.com/10up/autoshare-for-twitter/pull/370)).
 * **Changed:** Bump WordPress minimum supported version to 6.6 (props [@peterwilsoncc](https://github.com/peterwilsoncc),
   [@Sourabh208](https://github.com/Sourabh208), [@jeffpaul](https://github.com/jeffpaul)
   via [#359](https://github.com/10up/autoshare-for-twitter/pull/359), [#367](https://github.com/10up/autoshare-for-twitter/pull/367),
   [#370](https://github.com/10up/autoshare-for-twitter/pull/370)).
 * **Changed:** Make the API rate limit wording more clear (props [@jeckman](https://github.com/jeckman),
   [@iamdharmesh](https://github.com/iamdharmesh), [@dkotter](https://github.com/dkotter)
   via [#365](https://github.com/10up/autoshare-for-twitter/pull/365)).
 * **Fixed:** Ensure that no rate limits are shown if the reset time has passed (
   props [@iamdharmesh](https://github.com/iamdharmesh), [@dkotter](https://github.com/dkotter)
   via [#356](https://github.com/10up/autoshare-for-twitter/pull/356)).
 * **Security:** Bump `@wordpress/scripts` from 27.9.0 to 30.10.0 (props [@dependabot](https://github.com/apps/dependabot),
   [@peterwilsoncc](https://github.com/peterwilsoncc) via [#359](https://github.com/10up/autoshare-for-twitter/pull/359)).
 * **Security:** Bump `cookie` from 0.6.0 to 0.7.1, `express` from 4.21.0 to 4.21.2,`
   serialize-javascript` from 6.0.0 to 6.0.2 and `mocha` from 10.2.0 to 11.1.0 (
   props [@dependabot](https://github.com/apps/dependabot), [@iamdharmesh](https://github.com/iamdharmesh)
   via [#361](https://github.com/10up/autoshare-for-twitter/pull/361)).
 * **Security:** Bump `http-proxy-middleware` from 2.0.6 to 2.0.9 (props [@dependabot](https://github.com/apps/dependabot),
   [@iamdharmesh](https://github.com/iamdharmesh) via [#369](https://github.com/10up/autoshare-for-twitter/pull/369)).
 * **Security:** Bump `tar-fs` from 3.0.8 to 3.0.9 (props [@dependabot](https://github.com/apps/dependabot),
   [@dkotter](https://github.com/dkotter) via [#373](https://github.com/10up/autoshare-for-twitter/pull/373)).

#### 2.3.0 – 2025-02-05

**Note that this version bumps the WordPress minimum supported version from 5.7 
to 6.5.**

 * **Added:** Expose the X headers to the `autoshare_for_twitter_after_status_update`
   hook (props [@s3rgiosan](https://github.com/s3rgiosan), [@iamdharmesh](https://github.com/iamdharmesh)
   via [#353](https://github.com/10up/autoshare-for-twitter/pull/353)).
 * **Added:** Admin dashboard widget for easy access to API usage statistics (props
   [@s3rgiosan](https://github.com/s3rgiosan), [@iamdharmesh](https://github.com/iamdharmesh)
   via [#354](https://github.com/10up/autoshare-for-twitter/pull/354)).
 * **Changed:** Display API usage statistics in the “Autopost to X/Twitter” block
   editor panel (props [@s3rgiosan](https://github.com/s3rgiosan), [@iamdharmesh](https://github.com/iamdharmesh)
   via [#354](https://github.com/10up/autoshare-for-twitter/pull/354)).
 * **Changed:** Bump WordPress “tested up to” version 6.7 (props [@sudip-md](https://github.com/sudip-md),
   [@dkotter](https://github.com/dkotter), [@thrijith](https://github.com/thrijith),
   [@jeffpaul](https://github.com/jeffpaul), [@iamdharmesh](https://github.com/iamdharmesh)
   via [#335](https://github.com/10up/autoshare-for-twitter/pull/335), [#347](https://github.com/10up/autoshare-for-twitter/pull/347),
   [#348](https://github.com/10up/autoshare-for-twitter/pull/348)).
 * **Changed:** Bump WordPress minimum from 5.7 to 6.5 (props [@thrijith](https://github.com/thrijith),
   [@jeffpaul](https://github.com/jeffpaul), [@iamdharmesh](https://github.com/iamdharmesh)
   via [#347](https://github.com/10up/autoshare-for-twitter/pull/347), [#348](https://github.com/10up/autoshare-for-twitter/pull/348)).
 * **Security:** Bump `braces` from 3.0.2 to 3.0.3, `pac-resolver` from 7.0.0 to
   7.0.1, `socks` from 2.7.1 to 2.8.3, `ws` from 7.5.9 to 7.5.10 and removes `ip`(
   props [@dependabot](https://github.com/apps/dependabot), [@iamdharmesh](https://github.com/iamdharmesh)
   via [#327](https://github.com/10up/autoshare-for-twitter/pull/327)).
 * **Security:** Bump `axios` from 1.6.7 to 1.7.4 (props [@dependabot](https://github.com/apps/dependabot),
   [@faisal-alvi](https://github.com/faisal-alvi), [@dkotter](https://github.com/dkotter)
   via [#336](https://github.com/10up/autoshare-for-twitter/pull/336), [#337](https://github.com/10up/autoshare-for-twitter/pull/337)).
 * **Security:** Bump `webpack` from 5.90.0 to 5.94.0 (props [@dependabot](https://github.com/apps/dependabot),
   [@iamdharmesh](https://github.com/iamdharmesh) via [#339](https://github.com/10up/autoshare-for-twitter/pull/339)).
 * **Security:** Bump `ws` from 7.5.10 to 8.18.0, `serve-static` from 1.15.0 to 
   1.16.2 and `express` from 4.19.2 to 4.21.0 (props [@dependabot](https://github.com/apps/dependabot),
   [@Sidsector9](https://github.com/Sidsector9) via [#343](https://github.com/10up/autoshare-for-twitter/pull/343)).

Further changelog entries can be found in the [CHANGELOG.md](https://github.com/10up/autoshare-for-twitter/blob/trunk/CHANGELOG.md)
file.

## Community plugin

This plugin is developed and supported by a community. [Contribute to this plugin](https://github.com/10up/autoshare-for-twitter)

## Meta

 *  Version **2.3.3**
 *  Last updated **1 month ago**
 *  Active installations **5,000+**
 *  WordPress version ** 6.8 or higher **
 *  Tested up to **7.0.2**
 *  PHP version ** 7.4 or higher **
 * Tags
 * [POSSE](https://wordpress.org/plugins/tags/posse/)[share](https://wordpress.org/plugins/tags/share/)
   [social media](https://wordpress.org/plugins/tags/social-media/)[tweet](https://wordpress.org/plugins/tags/tweet/)
   [twitter](https://wordpress.org/plugins/tags/twitter/)
 *  [Advanced View](https://wordpress.org/plugins/autoshare-for-twitter/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  6 5-star reviews     ](https://wordpress.org/support/plugin/autoshare-for-twitter/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/autoshare-for-twitter/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/autoshare-for-twitter/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/autoshare-for-twitter/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/autoshare-for-twitter/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/autoshare-for-twitter/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/autoshare-for-twitter/reviews/)

## Contributors

 *   [ 10up ](https://profiles.wordpress.org/10up/)
 *   [ John Watkins ](https://profiles.wordpress.org/johnwatkins0/)
 *   [ Adam Silverstein ](https://profiles.wordpress.org/adamsilverstein/)
 *   [ Scott Lee ](https://profiles.wordpress.org/scottlee/)
 *   [ Tung Du ](https://profiles.wordpress.org/dinhtungdu/)
 *   [ Jeffrey Paul ](https://profiles.wordpress.org/jeffpaul/)
 *   [ Dharmesh Patel ](https://profiles.wordpress.org/dharm1025/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/autoshare-for-twitter/)