apply_filters( 'relevanssi_1day', 1 )
apply_filters( 'relevanssi_7days', 7 )
apply_filters( 'relevanssi_30days', 30 )

These filter hooks adjust the number of days of logs displayed on the User searches page.

These hooks no longer exist! Relevanssi Premium 2.16 and free 4.14.0 removed these filter hooks. The filter hooks are no longer required, as the User search page is now different.


(int) The number of days to display.

More information

By default, Relevanssi shows the logs for one day, seven days and 30 days in the User searches screen. If you want to adjust these numbers, you can use these filter hooks to change the number of days to display.

To make the User searches page display the searches for the past week, month and year, you can do:

add_filter( 'relevanssi_1day', function() { return 7; } );
add_filter( 'relevanssi_7days', function() { return 30; } );
add_filter( 'relevanssi_30days', function() { return 365; } );