Skip to content

activitypub_get_wp_object_state

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

Allow plugins to get the federation state of a WordPress object.

Auto-generated Example

add_filter(
    'activitypub_get_wp_object_state',
    function (
        Activitypub\false $state,
        WP_Comment|\WP_Post $wp_object
    ) {
        // Your code here
        return $state;
    },
    10,
    2
);

Parameters

  • Activitypub\false $state The state of the object.
  • WP_Comment|\WP_Post $wp_object The WordPress object.

Files

\apply_filters( 'activitypub_get_wp_object_state', false, $wp_object )

Hooks

Users

Developers

Clone this wiki locally