We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
WP_Post
$post
\apply_filters( 'activitypub_is_post_disabled', $disabled, $post )
← All Hooks