Available since: 2.6
searchwp_debug_append_weights_to_titlesView 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
|// Will append the calculated result weight after the title in the debug log|
|add_filter( 'searchwp_debug_append_weights_to_titles', '__return_true' );|
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.