WordPress Codex for more details on using arrays for orderby.", 'relevanssi' ), 'orderby
', 'https://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters' );
// Translators: %s is 'Uncheck this if you use non-ASCII characters' option name.
$inside_word_highlights = sprintf( __( 'To get inside-word highlights, uncheck the "%s" option. That has a side-effect of enabling the inside-word highlights.', 'relevanssi' ), __( 'Uncheck this if you use non-ASCII characters', 'relevanssi' ) );
// Translators: %s is 'relevanssi_throttle_limit'.
$throttle_limit = sprintf( __( 'In order to adjust the throttle limit, you can use the %s filter hook.', 'relevanssi' ), 'pre_option_relevanssi_throttle_limit
' );
$screen->add_help_tab(
array(
'id' => 'relevanssi-searching',
'title' => __( 'Searching', 'relevanssi' ),
'content' => '
add_filter( \'relevanssi_fuzzy_query\', \'rlv_partial_inside_words\' ); function rlv_partial_inside_words( $query ) { return "(relevanssi.term LIKE \'%#term#%\')"; }
add_filter( \'pre_option_relevanssi_throttle_limit\', function( $limit ) { return 200; } );
<input type="hidden" name="cats" value="10,14,17" />
<input type="hidden" name="tag" value="alfa+beta" />
relevanssi_do_not_index
' );
// Translators: %s is a link to the Relevanssi knowledge base.
$more_examples = sprintf( __( "For more examples, see the related knowledge base posts.", 'relevanssi' ), 'https://www.relevanssi.com/tag/relevanssi_do_not_index/' );
$screen->add_help_tab(
array(
'id' => 'relevanssi-search-exclusions',
'title' => __( 'Exclusions', 'relevanssi' ),
'content' => '<input type="hidden" name="tag__not_in" value="10" />
add_filter( \'relevanssi_do_not_index\', \'rlv_index_filter\', 10, 2 ); function rlv_index_filter( $block, $post_id ) { if ( has_term( \'jazz\', \'genre\', $post_id ) ) { $block = true; } return $block; }
relevanssi_user_searches_limit
' );
// Translators: %s is the name of the database table.
$log_database = sprintf( __( 'The complete logs are stored in the %s database table, where you can access them if you need more information than what the User searches page provides.', 'relevanssi' ), '' . $wpdb->prefix . 'relevanssi_log
' );
$screen->add_help_tab(
array(
'id' => 'relevanssi-logging',
'title' => __( 'Logs', 'relevanssi' ),
'content' => 'add_filter( 'relevanssi_user_searches_limit', function() { return 50; } );
the_excerpt()
' );
// Translators: %1$s is 'relevanssi_pre_excerpt_content', %2$s is 'relevanssi_excerpt_content'.
$pre_excerpt_content = sprintf( __( 'If you want more control over what content Relevanssi uses to create the excerpts, you can use the %1$s and %2$s filter hooks to adjust the content.', 'relevanssi' ), 'relevanssi_pre_excerpt_content
', 'relevanssi_excerpt_content
' );
// Translators: %s is 'relevanssi_disable_shortcodes_excerpt'.
$disable_shortcodes = sprintf( __( 'Some shortcode do not work well with Relevanssi excerpt-generation. Relevanssi disables some shortcodes automatically to prevent problems. This can be adjusted with the %s filter hook.', 'relevanssi' ), 'relevanssi_disable_shortcodes_excerpt
' );
// Translators: %s is 'relevanssi_optimize_excerpts'.
$optimize_excerpts = sprintf( __( "If you want Relevanssi to build excerpts faster and don't mind that they may be less than perfect in quality, add a filter that returns true on hook %s.", 'relevanssi' ), 'relevanssi_optimize_excerpts
' );
$screen->add_help_tab(
array(
'id' => 'relevanssi-excerpts',
'title' => __( 'Excerpts', 'relevanssi' ),
'content' => 'add_filter( 'relevanssi_optimize_excerpts', '__return_true' );
the_title()
', 'relevanssi_the_title()
' );
$screen->add_help_tab(
array(
'id' => 'relevanssi-highlights',
'title' => __( 'Highlights', 'relevanssi' ),
'content' => 'relevanssi_punctuation_filter
', 'relevanssi_remove_punctuation
' );
// Translators: %s is the URL to the Knowledge Base entry.
$remove_punct_guide = sprintf( __( "For more examples, see the related knowledge base posts.", 'relevanssi' ), 'https://www.relevanssi.com/tag/relevanssi_remove_punct/' );
$screen->add_help_tab(
array(
'id' => 'relevanssi-punctuation',
'title' => __( 'Punctuation', 'relevanssi' ),
'content' => '[noindex]
' );
// Translators: %s is '[searchform]'.
$searchform = sprintf( __( 'If you need a search form on some page on your site, you can use the %s shortcode to print out a basic search form.', 'relevanssi' ), '[searchform]
' );
// Translators: %1$s is '[searchform post_types="page"]', %2$s is '[searchform cats="10,14,17"]'.
$searchform_cats = sprintf( __( 'If you need to add query variables to the search form, the shortcode takes parameters, which are then printed out as hidden input fields. To get a search form with a post type restriction, you can use %1$s. To restrict the search to categories 10, 14 and 17, you can use %2$s and so on.', 'relevanssi' ), '[searchform post_types="page"]
', '[searchform cats="10,14,17"]
' );
// Translators: %1$s is 'dropdown', %2$s is '[searchform dropdown="category"]'.
$searchform_dropdown = sprintf( __( 'You can use the %1$s parameter to add a taxonomy dropdown to the search form. Just use the name of the taxonomy, like %2$s. This works best with hierarchical taxonomies like categories with relatively few options available.', 'relevanssi' ), 'dropdown
', '[searchform dropdown="category"]
' );
$screen->add_help_tab(
array(
'id' => 'relevanssi-helpful-shortcodes',
'title' => __( 'Helpful shortcodes', 'relevanssi' ),
'content' => "relevanssi_exact_match_bonus
' );
// Translators: %1$s is the title weight and %2$s is the content weight.
$weights = sprintf( esc_html__( 'The default values are %1$s for titles and %2$s for content.', 'relevanssi' ), '5
', '2
' );
$screen->add_help_tab(
array(
'id' => 'relevanssi-exact-match',
'title' => __( 'Exact match bonus', 'relevanssi' ),
'content' => 'add_filter( 'relevanssi_exact_match_bonus', 'rlv_adjust_bonus' ); function rlv_adjust_bonus( \$bonus ) { return array( 'title' => 10, 'content' => 5 ); }
' . __( 'For more information:', 'relevanssi' ) . '
' . '' . '' ); }