SearchWP

This Documentation is for SearchWP Version 3

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:

<?php
do_action( 'searchwp_log', 'This is my log message, it will be timestamped automatically' );
view raw gistfile1.php hosted with ❤ by GitHub