SearchWP

This Documentation is for SearchWP Version 3

Available since: 2.6

searchwp_debug_append_weights_to_titles

View Parameters »

It takes a bit of extra work to determine the calculated weight of results, so by default they are omitted from display. If however you would like to examine the exact weights of results when viewing your search results and in the debug log, add this to your theme’s functions.php:

<?php
// Will append the calculated result weight after the title in the debug log
add_filter( 'searchwp_debug_append_weights_to_titles', '__return_true' );
view raw functions.php hosted with ❤ by GitHub

Note: You can also view the calculated weight of results by viewing the HTML comment block that is output on search results pages when debugging is enabled.

Parameters

Parameter Type Description
$append Boolean

Defaults to false

[wpforms id="3080"]