Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mikko Saari

    (@msaari)

    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;
    }

    See here.

    Thread Starter antstratakos

    (@antstratakos)

    Thank you for the quick and efficient solution you provided!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How do I index woocommerce product slug?’ is closed to new replies.