-
Notifications
You must be signed in to change notification settings - Fork 7
mastodon_api_view_post_types
Alex Kirk edited this page Feb 8, 2025
·
3 revisions
Standard post types that the app can view.
add_filter( 'mastodon_api_view_post_types', function( $view_post_types ) {
// This will allow the app to view pages.
return array_merge( $view_post_types, array( 'page' ) );
} );
-
array
$view_post_types
The post types.
array
The post types.
apply_filters( 'mastodon_api_view_post_types', $view_post_types )
apply_filters( 'mastodon_api_view_post_types', $view_post_types )