<?php
// Add to your (child) theme's functions.php and re-index afterwards
add_filter( 'facetwp_index_row', function( $params, $class ) {
if ( 'audience' == $params['facet_name'] ) {
if ( 'for-all' == $params['facet_value'] ) {
$new_row = $params;
$new_row['facet_value'] = 'for-individual-employees';
$new_row['facet_display_value'] = 'For Individual Employees';
$class->insert( $new_row );
$new_row['facet_value'] = 'for-jobseekers';
$new_row['facet_display_value'] = 'For Jobseekers';
$class->insert( $new_row );
$new_row['facet_value'] = 'for-hr-professionals-team-leaders-anddi-practicion';
$new_row['facet_display_value'] = 'HR Professionals, Team Leaders and D&I Practitioners';
$class->insert( $new_row );
}
}
return $params;
}, 10, 2 );