" . sprintf( __( '%s results per source', 'admin-search' ), $field ) . "" . __( 'If a search returns more results than the limit, an option to load more will be displayed in the search box. A high result limit may cause longer load times when searching.', 'admin-search' ) . "
";
}
/*
* Set up 'highlight_query' setting
*/
function admin_search_setting_highlight_query() {
echo " " . __( 'Highlight matching keywords in the search results', 'admin-search' ) . "
";
}
/*
* Set up 'show_when_viewing_site' setting
*/
function admin_search_setting_show_when_viewing_site() {
echo "";
}
/*
* Set up 'result_previews' setting
*/
function admin_search_setting_result_previews() {
echo "";
}
/*
* Add 'sources' settings section summary copy
*/
function admin_search_section_sources_text() {
echo '' . __( 'Choose what appears in search results.', 'admin-search' ) . '
';
}
/*
* Set up 'post_types' setting
*/
function admin_search_setting_post_types() {
echo "";
foreach ( get_post_types( array(), 'object' ) as $post_type ) {
if ( $post_type -> {'public'} ) {
echo "
name, admin_search_setting( 'post_types', array() ) ) ) {
echo " checked";
}
echo "> {$post_type -> label}
";
}
}
echo "
";
}
/*
* Set up 'taxonomies' setting
*/
function admin_search_setting_taxonomies() {
echo "";
foreach ( get_taxonomies( array(), 'object' ) as $taxonomy ) {
if ( $taxonomy -> {'public'} ) {
echo "
name, admin_search_setting( 'taxonomies', array() ) ) ) {
echo " checked";
}
echo "> {$taxonomy -> label}
";
}
}
echo "
";
}
/*
* Set up 'include_admin_pages' setting
*/
function admin_search_setting_include_admin_pages() {
echo "";
}
/*
* Set up 'include_comments' setting
*/
function admin_search_setting_include_comments() {
echo "";
}
/*
* Set up 'include_users' setting
*/
function admin_search_setting_include_users() {
echo " " . __( 'Include user profiles in the search results', 'admin-search' ) . "
";
}
/*
* Set up 'display_users_as' setting
*/
function admin_search_setting_display_users_as() {
echo "";
foreach( array(
'username' => __( 'Username' ),
'full_name' => __( 'Full name' ),
'nickname' => __( 'Nickname' )
) as $value => $label ) {
echo "" . $label . " ";
}
echo "
";
}
/*
* Set up 'external_websites' setting
*/
function admin_search_setting_external_websites() {
echo "" . __( 'Display links to external websites in search results. Use %q% in place of the query value in the URL. Separate multiple website URLs with line breaks.', 'admin-search' ) . "
" . __( 'Example: Add https://wordpress.org/search/%q% to display a link to the WordPress.org search pre-populated with your search query.', 'admin-search' ) . "
";
}