Extending, where to add filter code ?
-
Maybe a stupid question, but putting code in my functions.php didn’t seem to work, so:
Where do I add ‘add_filter’ functions for the hooks in the plugin ?function my_log_ip($ip) { file_put_contents("/tmp/wp_ip_log.txt","$ip\n",FILE_APPEND); return $ip; } add_filter( 'ip-location-block-ip-addr', 'my_log_ip' );
As described in::
==
Extendability:
You can customize the behavior of this plugin via add_filter() with pre-defined filter hook. See various use cases in samples.php bundled within this package.
==
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Extending, where to add filter code ?’ is closed to new replies.