-
Notifications
You must be signed in to change notification settings - Fork 4
wpt_tweet_failed
github-actions[bot] edited this page Jun 20, 2026
·
3 revisions
Executes an action after posting a status fails.
add_action(
'wpt_tweet_failed',
function(
object $connection,
int $post_ID,
string $error
) {
// Your code here.
},
10,
3
);-
object$connectionThe current OAuth connection. -
int$post_IDPost ID for status update. -
string$errorError message returned.
do_action( 'wpt_tweet_failed', $connection, $post_ID, $notice )