Publicize: public per-post filter for external/app publishers to set the share decision

Open
#50,853 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Quiet
Tech stack
php
Domain
api, backend

Research direction

Start by reviewing Publicize's per-post connection controls and the existing _wpas_* skip-meta behavior, then compare them with the named share_on_mastodon_enabled and autoshare_for_twitter_enabled_default filters. Done means establishing whether a public per-post hook receives the post ID and, if not, defining and documenting an extension point for app publishers.

Written by the indexing model from the issue text.

Description

Summary

I maintain Moment, a phone-first WordPress publishing app. Moments are standard posts, so Jetpack Social / Publicize shares them on publish. The gap: from Moment's own mobile UI there's no clean way to let a user choose, per post, whether a Moment is publicized, because Publicize's per-post connection controls live in the block editor pre-publish panel that a lightweight app bypasses.

Moment already offers an in-app, per-post toggle for plugins that expose a public control hook — for example Share on Mastodon's share_on_mastodon_enabled filter and Autoshare for Twitter's autoshare_for_twitter_enabled_default filter (both receive the post ID and let an external plugin decide, per post, whether that post is shared).

Request

Is there a public, per-post filter an external plugin can hook to set Publicize's share decision programmatically (per post, receiving the post ID) — ideally without reconstructing the block-editor connection UI or writing the _wpas_* skip meta directly? If not, would you consider a documented extension point for headless/app publishers? Happy to discuss or open a PR. Thanks for Jetpack!

Dominant language
PHP
Stars
1.9k
Forks
913
Avg merge
1d 18h
Merged PRs (30d)
809

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Automattic/jetpack

All issues in Automattic/jetpack

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.