Note: You are viewing the documentation for Version 3View Version 4 Docs

Documentation

View the installation guide, browse the Knowledge Base, find out about SearchWP's many hooks, get support

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
Fix keyword search on your site. No coding required!

Now you can utilize all of the content that's gone unrecognized by native WordPress keyword search instantly with SearchWP

Get SearchWP