mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-04-29 11:32:21 +08:00
5 lines
231 B
Text
5 lines
231 B
Text
add_filter( 'relevanssi_content_to_index', 'rlv_index_slug', 10, 2 );
|
|
function rlv_index_slug( $content, $post ) {
|
|
$slug_with_spaces = str_replace( '-', ' ', $post->post_name );
|
|
return $content . ' ' . $slug_with_spaces;
|
|
}
|