apply_filters( 'share_on_mastodon_admin_notices', bool $enabled )
Enables “classic editor” notices, which are by default disabled. Makes sense only in combination with the classic editor and a “sharing delay” of 0
.
apply_filters( 'share_on_mastodon_attached_images', bool $enabled, WP_Post $post
)
, WP_Post $post
)Whether a post’s attached images should be uploaded. Overrides the “Attached Images” setting (which is the preferred way of enabling or disabling this feature for all posts).
apply_filters( 'share_on_mastodon_client_name', string $name )
Enables overriding the default (“Share on Mastodon”) API client name. Will not affect already registered API clients and thus must be in place before the plugin is first activated (or before all of its settings are wiped and it is re-set up).
apply_filters( 'share_on_mastodon_cutoff', int $length )
Deprecated. Don’t use.
apply_filters( 'share_on_mastodon_enabled', bool $enabled, int $post_id )
Whether a specific post should be shared on Mastodon. (While you could have your callback simply be __return_true
always, it’s advised to instead use the “Share Always” setting for that.)
apply_filters( 'share_on_mastodon_excerpt_length', int $length )
The maximum length of the processed %excerpt%
template tag.
apply_filters( 'share_on_mastodon_featured_image', bool $enabled, WP_Post $post )
Whether a post’s featured image should be uploaded. Overrides the “Featured Image” setting (which is the preferred way of enabling or disabling this feature for all posts).
apply_filters( 'share_on_mastodon_image_size', string $size, int $image_id )
The preferred “thumbnail size” to use when uploading images. Defaults to “large.” (Note that, under certain conditions, the plugin might choose to upload the original instead.)
apply_filters( 'share_on_mastodon_media', array $media_ids, WP_Post $post )
The IDs of attachments to be uploaded.
apply_filters( 'share_on_mastodon_num_images', int $max, WP_Post $post )
The maximum number of images to upload. Overrides the value set through the plugin’s Settings page (which is the preferred way of setting this for all posts).
apply_filters( 'share_on_mastodon_optin', bool $enabled )
Whether the Share on Mastodon checkbox should be unchecked by default, making sharing “opt-in.” Overrides the “Opt-In” setting (which is the preferred way of enabling or disabling this feature).
apply_filters( 'share_on_mastodon_post_types', array $post_types )
Array of post type slugs. Overrides the Post Types setting.
apply_filters( 'share_on_mastodon_referenced_images', bool $enabled, WP_Post $post )
Whether in-post/referenced/embedded images should be uploaded. Overrides the “In-Post Images” setting (which is the preferred way of enabling or disabling this feature for all posts).
apply_filters( 'share_on_mastodon_status', string $status, WP_Post $post )
Overrides the Mastodon status (the “toot” content).
apply_filters( 'share_on_mastodon_toot_args', array $args, WP_Post $post )
Filters all arguments sent to Mastodon’s API.