Skip to content

activitypub_is_post_disabled

github-actions[bot] edited this page Sep 12, 2025 · 11 revisions

Allow plugins to disable posts for ActivityPub.

Auto-generated Example

/**
 * 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 );

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