- 
                Notifications
    
You must be signed in to change notification settings  - Fork 83
 
activitypub_rest_nodeinfo_pre
        github-actions[bot] edited this page Oct 1, 2025 
        ·
        9 revisions
      
    Fires before the NodeInfo data is created and sent to the client.
/**
 * Fires before the NodeInfo data is created and sent to the client.
 *
 * @param string $version 
 * @return string The filtered value.
 */
function my_activitypub_rest_nodeinfo_pre_callback( string $version ) {
    // Your code here.
    return $version;
}
add_filter( 'activitypub_rest_nodeinfo_pre', 'my_activitypub_rest_nodeinfo_pre_callback' );- 
string$versionThe NodeInfo version. 
\do_action( 'activitypub_rest_nodeinfo_pre', $version )Follow @[email protected] for updates and news.