Skip to content

activitypub_is_post_disabled

github-actions[bot] edited this page Jul 23, 2025 · 13 revisions

Allow plugins to disable posts for ActivityPub.

Auto-generated Example

add_filter(
    'activitypub_is_post_disabled',
    function (
        Activitypub\boolean $disabled,
        WP_Post $post
    ) {
        // Your code here
        return $disabled;
    },
    10,
    2
);

Parameters

  • Activitypub\boolean $disabled True if the post is disabled, false otherwise.
  • WP_Post $post The post object.

Files

\apply_filters( 'activitypub_is_post_disabled', $disabled, $post )

Hooks

Users

Developers

Clone this wiki locally