add_help_tab( array( 'id' => 'relevanssi-boolean', 'title' => __( 'Boolean operators', 'relevanssi' ), 'content' => '
%s', __( 'cats -dogs', 'relevanssi' ) ) . __( "This would only show posts that have the word 'cats' but not the word 'dogs'.", 'relevanssi' ) . '
%s', __( '+cats dogs mice', 'relevanssi' ) ) . __( "This would show posts that have the word 'cats' and either 'dogs' or 'mice' or both, and would prioritize posts that have all three.", 'relevanssi' ) . '
the_permalink()', 'relevanssi_the_permalink()' );
/* Translators: the placeholder is the name of the relevanssi_index_user_fields option */
$index_user_fields = sprintf( esc_html__( 'To control which user meta fields are indexed, you can use the %s option. It should have a comma-separated list of user meta fields. It can be set like this (you only need to run this code once):', 'relevanssi' ), 'relevanssi_index_user_fields' );
/* Translators: the first placeholder opens the link, the second closes the link */
$knowledge_base = sprintf( esc_html__( 'For more details on user profiles and search results templates, see %1$sthis knowledge base entry%2$s.', 'relevanssi' ), "", '' );
$screen->add_help_tab(
array(
'id' => 'relevanssi-title-user-profiles',
'title' => __( 'User profiles', 'relevanssi' ),
'content' => 'update_option( 'relevanssi_index_user_fields', 'field_a,field_b,field_c' );
add_filter( 'relevanssi_stemmer', 'relevanssi_simple_english_stemmer' );" . '
wp help relevanssi' );
/* Translators: the first placeholder opens the link, the second closes the link */
$wp_cli_manual = sprintf( esc_html__( 'You can also see %1$sthe user manual page%2$s.', 'relevanssi' ), "", '' );
$screen->add_help_tab(
array(
'id' => 'relevanssi-wpcli',
'title' => __( 'WP CLI', 'relevanssi' ),
'content' => "' . __( 'For more information:', 'relevanssi' ) . '
' . '' . __( 'Plugin support page', 'relevanssi' ) . '
' . '' . '' . '' ); }