-
Notifications
You must be signed in to change notification settings - Fork 82
nodeinfo_data
github-actions[bot] edited this page Oct 1, 2025
·
1 revision
Filter the NodeInfo data.
/**
* Filter the NodeInfo data.
*
* @param array $nodeinfo
* @param string $version
* @return array The filtered value.
*/
function my_nodeinfo_data_callback( array $nodeinfo, string $version ) {
// Your code here.
return $nodeinfo;
}
add_filter( 'nodeinfo_data', 'my_nodeinfo_data_callback', 10, 2 );
-
array
$nodeinfo
The NodeInfo data. -
string
$version
The NodeInfo version.
\apply_filters( 'nodeinfo_data', $nodeinfo, $version )
Follow @[email protected] for updates and news.