Вход на сайт

Просмотр новости

Найдите то, что Вас интересует

Removing Relevanssi from the quick edit

Дата публикации: 02-03-2026 04:19:28

Relevanssi Premium adds Relevanssi tools to post edit pages and in the quick edit box. If you want to disable these, there’s an option to hide both. But what if you want to keep the Relevanssi tools on the edit pages, but want to remove them from the quick edit? The option removes both, but...
Source

Основное содержимое страницы с новостью.

Relevanssi Premium adds Relevanssi tools to post edit pages and in the quick edit box. If you want to disable these, there’s an option to hide both. But what if you want to keep the Relevanssi tools on the edit pages, but want to remove them from the quick edit?

The option removes both, but there’s a solution. The quick edit features are added with the WordPress filter hook quick_edit_custom_box and can be removed by unhooking the Relevanssi function from that hook. You can do this with this little snippet:

add_action( 'init', function() {
	remove_filter( 'quick_edit_custom_box', 'relevanssi_quick_edit_custom_box' );
}, 11);

Add this to your site, and the quick edit features will be gone.

It’s important to wrap the remove_filter() in the init action, because otherwise this will have no effect if you put this code in your theme. Theme code runs before plugin code, so you’d first remove the filter and then Relevanssi would add it. Relevanssi adds the filter in an init action on priority 10, so the priority 11 on init action is the first possible time to remove it.

Your account

Not logged in. Log in to see your license details.

SearchPopular Resources
Exact matches for short search terms

…add_filter( ‘relevanssi_term_where’, ‘rlv_three_exact_four_fuzzy’, 10, 2 ); function rlv_three_exact_four_fuzzy( $where, $term ) { if ( relevanssi_strlen( $term ) <= 3 ) { $where = “(relevanssi.term = ‘$term’)”; } return $where; } Add this to your site and set Relevanssi to use partial matching in the searching settings. Now searches with search……terms that are at most three characters long will use exact matching. The way this works is simple. The relevanssi_term_where filter hook lets you adjust the part of the MySQL query that includes the search term. If the search term is short, instead of doing the default partial search query,…Is is possible to set Relevanssi in a way that it would return only perfect matches for queries up to 3 characters, but any words that starts with the queried term if it has 4 characters or more? – Originally asked here Yes, but it requires a bit of code….

GDPR Compliance

We have a privacy policy that covers your use of this web site and our customer data use. However, if…

Related Posts:

Currently there are no related posts available.

Comment Section:

Схожие новости

#Наименование новостиТональностьИнформативностьДата публикации
1Disabling Relevanssi Light for a specific post type09.0420-04-2026
2The wrong content gets indexed for a post06.2227-01-2026
3Premium 2.30 / Free 4.27011.6512-05-2026
4A New Chapter for Relevanssi01027-03-2026
5comesio solutions – The new home of Relevanssi01027-03-2026
6A New Chapter for Relevanssi – Frontpage01027-03-2026
7Add more content to the index for Relevanssi Light01020-04-2026
8Voice Search07.3412-05-2026
9The media is not attached to a post!0527-06-2026
10Re: Editing a Community Gallery post- adding a new video link not possible?0319-07-2026

Классификация: . Схожих патентов: 0. Схожих новостей: 10. Тональность: 0. Информативность: 4.7. Источник: www.relevanssi.com.