-
Notifications
You must be signed in to change notification settings - Fork 80
activitypub_rest_nodeinfo_pre
github-actions[bot] edited this page Aug 18, 2025
·
8 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
$version
The NodeInfo version.
\do_action( 'activitypub_rest_nodeinfo_pre', $version )
Follow @[email protected] for updates and news.