-
Notifications
You must be signed in to change notification settings - Fork 85
activitypub_client_ip
github-actions[bot] edited this page Mar 12, 2026
·
1 revision
Filter the client IP address used for rate limiting.
/**
* Filter the client IP address used for rate limiting.
*
* @param string $ip
* @return string The filtered value.
*/
function my_activitypub_client_ip_callback( string $ip ) {
// Your code here.
return $ip;
}
add_filter( 'activitypub_client_ip', 'my_activitypub_client_ip_callback' );-
string$ipThe detected client IP address.
\apply_filters( 'activitypub_client_ip', $ip )Follow @activitypub.blog@activitypub.blog for updates and news.