-
Notifications
You must be signed in to change notification settings - Fork 85
activitypub_is_post_disabled
github-actions[bot] edited this page Jul 29, 2025
·
13 revisions
Allow plugins to disable posts for ActivityPub.
add_filter(
'activitypub_is_post_disabled',
'my_activitypub_is_post_disabled_callback',
10,
2
);
function my_activitypub_is_post_disabled_callback(
Activitypub\boolean $disabled,
WP_Post $post
) {
// Your code here.
return $disabled;
}
-
Activitypub\boolean
$disabled
True if the post is disabled, false otherwise. -
WP_Post
$post
The post object.
\apply_filters( 'activitypub_is_post_disabled', $disabled, $post )
Follow @[email protected] for updates and news.