Skip to content

activitypub_is_post_disabled

github-actions[bot] edited this page Aug 7, 2025 · 11 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 )

← All Hooks

Users

Developers

Clone this wiki locally