Skip to content

Instantly share code, notes, and snippets.

@felipeelia
Created January 21, 2022 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save felipeelia/feaa3814046a2939001edee4bc0821f2 to your computer and use it in GitHub Desktop.
Save felipeelia/feaa3814046a2939001edee4bc0821f2 to your computer and use it in GitHub Desktop.
ElasticPress decay adjustments
<?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