elementor / activity-log

Get aware of any activities that are taking place on your dashboard! Imagine it like a black-box for your WordPress site.
http://wordpress.org/plugins/aryo-activity-log/
183 stars 54 forks source link

Tweak: Always use server `REMOTE_ADDR` and allow user to filter the value #192

Closed bainternet closed 1 year ago

bainternet commented 1 year ago

Added filter hook aal_get_ip_address to allow user to filter the value of remote address so he can use the correct server variables / headers, ex:

add_filter( 'aal_get_ip_address', function( $ip ) {
    // use cloudflare Forwarded IP
    return $_SERVER['HTTP_CF_CONNECTING_IP'];
}