-
Notifications
You must be signed in to change notification settings - Fork 9
mastodon_api_default_post_type
github-actions[bot] edited this page Jun 11, 2026
·
14 revisions
The default post type for posting from Mastodon apps when the configured to do so.
This only applies if the user unchekcks: Make posts through Mastodon apps appear on this WordPress
add_filter( 'mastodon_api_default_post_type', function( $post_type ) {
return 'my-own-custom-post-type';
} );-
string$post_typeThe default post type.
apply_filters( 'mastodon_api_default_post_type', \Enable_Mastodon_Apps\Mastodon_API::POST_CPT )apply_filters( 'mastodon_api_default_post_type', \Enable_Mastodon_Apps\Mastodon_API::POST_CPT )apply_filters( 'mastodon_api_default_post_type', \Enable_Mastodon_Apps\Mastodon_API::POST_CPT )apply_filters( 'mastodon_api_default_post_type', \Enable_Mastodon_Apps\Mastodon_API::POST_CPT )apply_filters( 'mastodon_api_default_post_type', \Enable_Mastodon_Apps\Mastodon_API::POST_CPT )