-
Notifications
You must be signed in to change notification settings - Fork 82
activitypub_is_post_disabled
github-actions[bot] edited this page Sep 12, 2025
·
11 revisions
Allow plugins to disable posts for ActivityPub.
/**
* Allow plugins to disable posts for ActivityPub.
*
* @param Activitypub\boolean $disabled
* @param WP_Post $post
* @return Activitypub\boolean The filtered value.
*/
function my_activitypub_is_post_disabled_callback( Activitypub\boolean $disabled, WP_Post $post ) {
// Your code here.
return $disabled;
}
add_filter( 'activitypub_is_post_disabled', 'my_activitypub_is_post_disabled_callback', 10, 2 );
-
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.