Available since: 1.0
searchwp_log
If you have enabled debugging SearchWP will log many messages to a searchwp-debug.txt
within your WordPress uploads (typically ~/wp-content/uploads/
) folder. If you are building into some SearchWP functionality and would like to include your own log messages you can do that with this hook.
Example: To log a message to the SearchWP debug.log (with debugging enabled) add the following to your code:
This file contains 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
<?php | |
do_action( 'searchwp_log', 'This is my log message, it will be timestamped automatically' ); |