Last active
November 3, 2023 11:41
-
-
Save railmedia/e7177a2519905a485db141e65022cc93 to your computer and use it in GitHub Desktop.
BNFW plugin detect user IP address
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function bnfw_custom_get_user_ip_address() { | |
| return $_SERVER['REMOTE_ADDR']; | |
| } | |
| add_shortcode( 'custom_user_ip_address', 'bnfw_custom_get_user_ip_address' ); | |
| add_filter( 'wp_mail', function( $args ) { | |
| $args['message'] = do_shortcode( $args['message'] ); | |
| return $args; | |
| }, 1, 1 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment