Created
January 21, 2022 14:23
-
-
Save felipeelia/feaa3814046a2939001edee4bc0821f2 to your computer and use it in GitHub Desktop.
ElasticPress decay adjustments
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Part of this comment in the ElasticPress repository | |
* | |
* @see https://github.com/10up/ElasticPress/issues/2073#issuecomment-776155310 | |
*/ | |
add_filter( 'epwr_boost_mode', function() { return 'multiply'; } ); | |
add_filter( 'epwr_offset', function() { return '15d'; } ); | |
add_filter( 'epwr_scale', function() { return '30d'; } ); | |
add_filter( 'epwr_decay', function() { return 0.5; } ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment