Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update plugin name and branding #293

Merged
merged 19 commits into from Dec 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Binary file modified .wordpress-org/banner-1544x500.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .wordpress-org/banner-772x250.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .wordpress-org/icon-128x128.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .wordpress-org/icon-256x256.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
47 changes: 26 additions & 21 deletions .wordpress-org/icon.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .wordpress-org/screenshot-1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .wordpress-org/screenshot-2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .wordpress-org/screenshot-3.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .wordpress-org/screenshot-4.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Expand Up @@ -6,7 +6,7 @@ The following is a set of guidelines for contributors as well as information and

## Ways to contribute

Contributing isn't just writing code - it's anything that improves the project. All contributions for AutoShare for Twitter are managed right here on GitHub. Here are some ways you can help:
Contributing isn't just writing code - it's anything that improves the project. All contributions for Autopost for X are managed right here on GitHub. Here are some ways you can help:

### Reporting bugs

Expand Down
6 changes: 6 additions & 0 deletions CREDITS.md
@@ -1,3 +1,5 @@
# Credits

The following acknowledges the Maintainers for this repository, those who have Contributed to this repository (via bug reports, code, design, ideas, project management, translation, testing, etc.), and any Libraries utilized.

## Maintainers
Expand All @@ -19,3 +21,7 @@ The following software libraries are utilized in this repository.
[TwitterOAuth](https://twitteroauth.com/) by [Abraham Williams](https://github.com/abraham) and licensed [MIT](https://github.com/abraham/twitteroauth/blob/master/LICENSE.md).

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

## Icons

X SVG Icons by [Iconpacks](https://iconpacks.net)
50 changes: 25 additions & 25 deletions README.md
@@ -1,6 +1,6 @@
# Autoshare for Twitter
# Autopost for X (formerly Autoshare for Twitter)

> Automatically tweets the post title or custom message and a link to the post.
> Automatically shares the post title or custom message and a link to the post to X/Twitter.

[![Support Level](https://img.shields.io/badge/support-stable-blue.svg)](#support-level) [![Release Version](https://img.shields.io/github/release/10up/autoshare-for-twitter.svg)](https://github.com/10up/autoshare-for-twitter/releases/latest) ![WordPress tested up to version](https://img.shields.io/wordpress/plugin/tested/autoshare-for-twitter?label=WordPress) [![GPLv2 License](https://img.shields.io/github/license/10up/autoshare-for-twitter.svg)](https://github.com/10up/autoshare-for-twitter/blob/develop/LICENSE.md)
[![ESLint](https://github.com/10up/autoshare-for-twitter/actions/workflows/eslint.yml/badge.svg)](https://github.com/10up/autoshare-for-twitter/actions/workflows/eslint.yml)
Expand All @@ -11,25 +11,25 @@

## Overview

Autoshare for Twitter automatically tweets your posts as soon as they’re published. Once you hit the Publish button, the plugin sends your post’s title, featured image, and link to Twitter, along with a custom message.
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.

| Create post screen with Autoshare for Twitter options | Published post screen with Autoshare for Twitter options. |
| Create post screen with Autopost for X/Twitter options | Published post screen with Autopost for X/Twitter options. |
| -------------- | ---------------- |
| [![Create post screen with Autoshare for Twitter options](.wordpress-org/screenshot-1.png)](.wordpress-org/screenshot-1.png) | [![Published post screen with Autoshare for Twitter options.](.wordpress-org/screenshot-2.png)](.wordpress-org/screenshot-2.png) |
| [![Create post screen with Autopost for X/Twitter options](.wordpress-org/screenshot-1.png)](.wordpress-org/screenshot-1.png) | [![Published post screen with Autopost for X/Twitter options.](.wordpress-org/screenshot-2.png)](.wordpress-org/screenshot-2.png) |

Unlike a myriad of other social media, multitool solutions, Autoshare for Twitter is built solely for Twitter. It focuses on doing one thing and does it well, with the code and interface craftsmanship we apply to every project.
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 Autoshare for Twitter, developers can further customize nearly everything about the tweets, including the image, author, and link, using an extensive set of hooks built into the code. Among its other features, the WordPress plugin:
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 tweet.
* Counts characters to keep you under the tweet limit.
* Adds a link to the tweet in the block editor sidebar.
* 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.

| Autoshare For Twitter block editor sidebar panel | Autoshare for Twitter Settings, found under `Settings` > `Autoshare for Twitter`. |
| Autopost For X/Twitter block editor sidebar panel | Autopost for X/Twitter Settings, found under `Settings` > `Autopost for X`. |
| --------------- | --------------- |
|[![Autoshare For Twitter block editor sidebar panel](.wordpress-org/screenshot-3.gif)](.wordpress-org/screenshot-3.gif) | [![Autoshare for Twitter Settings, found under `Settings` > `Autoshare for Twitter`.](.wordpress-org/screenshot-4.png)](.wordpress-org/screenshot-4.png)|
|[![Autopost For X/Twitter block editor sidebar panel](.wordpress-org/screenshot-3.gif)](.wordpress-org/screenshot-3.gif) | [![Autopost for X/Twitter Settings, found under `Settings` > `Autopost for X/Twitter`.](.wordpress-org/screenshot-4.png)](.wordpress-org/screenshot-4.png)|

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

Expand All @@ -42,13 +42,13 @@ With Autoshare for Twitter, developers can further customize nearly everything a

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

## Plugin Compatibility

### Distributor

When using with 10up's [Distributor plugin](https://github.com/10up/distributor), posts that are distributed will not be autoshared if they are already tweeted from the origin site. Autoshare for Twitter tracks posts that have been tweeted in post meta to avoid "double tweeting". To avoid this behavior, use the `dt_blacklisted_meta` filter to exclude the 'autoshare_for_twitter_status' meta value from being distributed :
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 :

```php
add_filter( 'dt_blacklisted_meta', function( $blacklisted_metas ) {
Expand All @@ -61,7 +61,7 @@ add_filter( 'dt_blacklisted_meta', function( $blacklisted_metas ) {

**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 (for more, see #25). The plugin namespace changed to just 'autoshare' as of version 1.0.0.

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

```php
function opt_my_cpt_into_autoshare() {
Expand All @@ -70,9 +70,9 @@ function opt_my_cpt_into_autoshare() {
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 autoshare. Future versions of this plugin could allow this to be set manually.
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 autoshare feature can be opted into for post types using the above filter, by default the editor still has to manually enable autoshare during the post prepublish flow. The `autoshare_for_twitter_enabled_default` filter allows autoshare to be enabled by default for all posts of a given post type. Editors can still manually uncheck the option during the publishing flow.
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:

Expand All @@ -93,38 +93,38 @@ add_filter( 'autoshare_for_twitter_enabled_default', 'enable_autoshare_by_defaul

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 Twitter API V2?
### Does the plugin work with X/Twitter API V2?

Yes, the plugin is compatible with 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 Twitter API credentials**: Please ensure that you have entered the correct Twitter API credentials.
2. **Deprecated access levels**: If you are still using the old 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. **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 Twitter's Free API access. With the Free API, you are allowed **1,500 Tweets per month** and **50 requests within a 24-hour period**. Since you have surpassed the daily limit, we kindly advise waiting for 24 hours before attempting to tweet again.
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 **1,500 Posts per month** and **50 requests within a 24-hour period**. 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 Twitter API access levels, you can visit this link: https://developer.twitter.com/en/products/twitter-api.
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.twitter.com/en/products/twitter-api.

## Support Level

**Stable:** 10up is not planning to develop any new features for this, but will still respond to bug reports and security concerns. We welcome PRs, but any that include new features should be small and easy to integrate and should not include breaking changes. We otherwise intend to keep this tested up to the most recent version of WordPress.

## Changelog

A complete listing of all notable changes to Autoshare for Twitter are documented in [CHANGELOG.md](https://github.com/10up/autoshare-for-twitter/blob/develop/CHANGELOG.md).
A complete listing of all notable changes to Autopost for X are documented in [CHANGELOG.md](https://github.com/10up/autoshare-for-twitter/blob/develop/CHANGELOG.md).

## Contributing

Please read [CODE_OF_CONDUCT.md](https://github.com/10up/autoshare-for-twitter/blob/develop/CODE_OF_CONDUCT.md) for details on our code of conduct, [CONTRIBUTING.md](https://github.com/10up/autoshare-for-twitter/blob/develop/CONTRIBUTING.md) for details on the process for submitting pull requests to us, and [CREDITS.md](https://github.com/10up/autoshare-for-twitter/blob/develop/CREDITS.md) for a listing of maintainers, contributors, and libraries for Autoshare for Twitter.
Please read [CODE_OF_CONDUCT.md](https://github.com/10up/autoshare-for-twitter/blob/develop/CODE_OF_CONDUCT.md) for details on our code of conduct, [CONTRIBUTING.md](https://github.com/10up/autoshare-for-twitter/blob/develop/CONTRIBUTING.md) for details on the process for submitting pull requests to us, and [CREDITS.md](https://github.com/10up/autoshare-for-twitter/blob/develop/CREDITS.md) for a listing of maintainers, contributors, and libraries for Autopost for X.

## Like what you see?

Expand Down
13 changes: 13 additions & 0 deletions assets/css/admin-autoshare-for-twitter-settings.css
Expand Up @@ -81,6 +81,14 @@
background: #bbb;
}

.autoshare-settings table.twitter_accounts th#autoshare_accounts {
max-width: 160px;
}

.autoshare-settings table.twitter_accounts th#action {
max-width: 140px;
}

@media (min-width: 1024px) {
.autoshare-settings {
display: flex;
Expand All @@ -94,6 +102,11 @@
.autoshare-settings .brand {
display: block;
}

}

.autoshare-settings table.form-table tr th[scope="row"] {
min-width: 140px;
}

.autoshare-settings table.twitter_accounts th,
Expand Down
27 changes: 14 additions & 13 deletions assets/css/admin-autoshare-for-twitter.css
Expand Up @@ -99,29 +99,29 @@ span.over-limit {
}

.autoshare-for-twitter-status-logo::before {
background-image: url('../images/twitter_default.svg');
background-image: url('../images/x_default.svg');
background-repeat: no-repeat;
background-size: 25px 25px;
background-size: 24px 24px;
content: ' ';
display: block;
height: 25px;
width: 25px;
height: 24px;
width: 24px;
}

tbody .autoshare-for-twitter-status-logo--published::before {
background-image: url('../images/twitter_tweeted.svg');
background-image: url('../images/x_tweeted.svg');
}

tbody .autoshare-for-twitter-status-logo--error::before {
background-image: url('../images/twitter_failed.svg');
background-image: url('../images/x_failed.svg');
}

tbody .autoshare-for-twitter-status-logo--enabled::before {
background-image: url('../images/twitter_enabled.svg');
background-image: url('../images/x_enabled.svg');
}

tbody .autoshare-for-twitter-status-logo--disabled::before {
background-image: url('../images/twitter_disabled.svg');
background-image: url('../images/x_disabled.svg');
}

.autoshare-for-twitter-pre-publish-panel svg.components-panel__icon,
Expand All @@ -138,12 +138,13 @@ tbody .autoshare-for-twitter-status-logo--disabled::before {

.autoshare-for-twitter-log svg {
max-width: 20px;
min-width: 20px;
height: auto;
}


#autoshare_for_twitter_metabox .autoshare-for-twitter-status-icon::before {
background-image: url('../images/twitter_default.svg');
background-image: url('../images/x_default.svg');
background-repeat: no-repeat;
background-size: 24px 24px;
content: ' ';
Expand All @@ -155,19 +156,19 @@ tbody .autoshare-for-twitter-status-logo--disabled::before {
}

#autoshare_for_twitter_metabox .autoshare-for-twitter-status-icon--published::before {
background-image: url('../images/twitter_tweeted.svg');
background-image: url('../images/x_tweeted.svg');
}

#autoshare_for_twitter_metabox .autoshare-for-twitter-status-icon--error::before {
background-image: url('../images/twitter_failed.svg');
background-image: url('../images/x_failed.svg');
}

#autoshare_for_twitter_metabox .autoshare-for-twitter-status-icon--enabled::before {
background-image: url('../images/twitter_enabled.svg');
background-image: url('../images/x_enabled.svg');
}

#autoshare_for_twitter_metabox .autoshare-for-twitter-status-icon--disabled::before {
background-image: url('../images/twitter_disabled.svg');
background-image: url('../images/x_disabled.svg');
}

#autoshare_for_twitter_metabox .autoshare-for-twitter-status-log-data {
Expand Down
5 changes: 0 additions & 5 deletions assets/images/twitter_blue.svg

This file was deleted.

5 changes: 0 additions & 5 deletions assets/images/twitter_default.svg

This file was deleted.