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' => '', ) ); // Translators: %s is the link to the Codex page. $codex_documentation = sprintf( __( 'For all the possible options, see the Codex documentation for %s.', 'relevanssi' ), 'WP_Query' ); $screen->add_help_tab( array( 'id' => 'relevanssi-search-restrictions', 'title' => __( 'Restrictions', 'relevanssi' ), 'content' => '', ) ); // Translators: %s is the link to the Codex page. $exclusion_options = sprintf( __( 'For more exclusion options, see the Codex documentation for %s. For example, to exclude tag ID 10, use', 'relevanssi' ), 'WP_Query' ); // Translators: %s is 'relevanssi_do_not_index'. $exclusion_instructions = sprintf( __( 'To exclude posts from the index and not just from the search, you can use the %s filter hook. This would not index posts that have a certain taxonomy term:', 'relevanssi' ), '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' => '', ) ); // Translators: %s is 'relevanssi_user_searches_limit'. $user_searches_limit = sprintf( __( 'By default, the User searches page shows 20 most common keywords. In order to see more, you can adjust the value with the %s filter hook, like this:', 'relevanssi' ), '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' => '', ) ); // Translators: %s is 'the_excerpt()'. $custom_snippets = sprintf( __( 'Custom snippets require that the search results template uses %s to print out the excerpts.', 'relevanssi' ), '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' => '', ) ); // Translators: %1$s is 'the_title()', %2$s is 'relevanssi_the_title()'. $the_title = sprintf( __( 'In order to see title highlights from Relevanssi, replace %1$s in the search results template with %2$s. It does the same thing, but supports Relevanssi title highlights.', 'relevanssi' ), 'the_title()', 'relevanssi_the_title()' ); $screen->add_help_tab( array( 'id' => 'relevanssi-highlights', 'title' => __( 'Highlights', 'relevanssi' ), 'content' => '', ) ); // Translators: %1$s is 'relevanssi_punctuation_filter', %2$s is 'relevanssi_remove_punctuation'. $remove_punctuation = sprintf( __( 'For more fine-tuned changes, you can use %1$s filter hook to adjust what is replaced with what, and %2$s filter hook to completely override the default punctuation control.', 'relevanssi' ), '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' => '', ) ); // Translators: %s is '[noindex]'. $noindex = sprintf( __( "If you have content that you don't want indexed, you can wrap that content in a %s shortcode.", 'relevanssi' ), '[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' => "", ) ); // Translators: %s is the Knowledge Base URL. $woocommerce = sprintf( __( "For more details how to fix that issue, see WooCommerce tips in Relevanssi user manual.", 'relevanssi' ), 'https://www.relevanssi.com/user-manual/woocommerce/' ); $screen->add_help_tab( array( 'id' => 'relevanssi-title-woocommerce', 'title' => __( 'WooCommerce', 'relevanssi' ), 'content' => '', ) ); // Translators: %s is the name of the filter hook. $exact_match_bonus = sprintf( __( 'To adjust the amount of the exact match bonus, you can use the %s filter hook. It works like this:', 'relevanssi' ), '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' => '", ) ); $screen->set_help_sidebar( '

' . __( 'For more information:', 'relevanssi' ) . '

' . '

' . __( 'Plugin knowledge base', 'relevanssi' ) . '

' . '

' . __( 'WordPress.org forum', 'relevanssi' ) . '

' ); }