Relevanssi 4.28.8 has 13 actions and 172 filters, read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when Relevanssi fires an action
add_action( 'relevanssi_pre_indexing_query', function() {
// Your code runs here.
}, 10, 1 );
// Change a value Relevanssi is about to use
add_filter( 'relevanssi_indexing_tokens', function( $relevanssi_tokenize, $arg2 ) {
// Change $relevanssi_tokenize here.
return $relevanssi_tokenize;
}, 10, 2 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
relevanssi_indexing_tokens
filter/** * This filter is documented in lib/indexing.php */ apply_filters( 'relevanssi_indexing_tokens', relevanssi_tokenize( $value, true, $min_word_length, 'indexing' ), 'custom_field' ); -
relevanssi_missing_sort_key
filter/** * Adds in a missing sorting value. */ apply_filters( 'relevanssi_missing_sort_key', $key1, $key ); -
/** * Filters the capability required to access Relevanssi options. */ apply_filters( 'relevanssi_options_capability', 'manage_options' ); -
post_password_required
filter/** * This filter is documented in wp-includes/post-template.php */ apply_filters( 'post_password_required', false, $post ); -
/** * Filters the capability required to access Relevanssi admin search page. */ apply_filters( 'relevanssi_admin_search_capability', 'edit_posts' ); -
/** * Filters whether meta query can use REGEXP or NOT REGEXP comparison. This is * a potential blind oracle attack, so it's behind bars by default. */ apply_filters( 'relevanssi_allow_meta_query_regexp', false ); -
/** * Allows creating one-letter highlights. */ apply_filters( 'relevanssi_allow_one_letter_highlights', false ); -
relevanssi_block_to_render
filter/** * Filters the Gutenberg block before it is rendered. */ apply_filters( 'relevanssi_block_to_render', $block ); -
relevanssi_bots_to_block
filter/** * Filters the bots Relevanssi should block from search queries. */ apply_filters( 'relevanssi_bots_to_block', relevanssi_bot_block_list() ); -
/** * Filters the custom field value before indexing. */ apply_filters( 'relevanssi_custom_field_value', get_post_meta( $post_id, $field, false ), $field, $post_id ); -
relevanssi_df_query_filter
filter/** * Filters the DF query. */ apply_filters( 'relevanssi_df_query_filter', $query ); -
/** * Filters whether the common words list is displayed or not. */ apply_filters( 'relevanssi_display_common_words', true ); -
/** * Filters the WHERE restriction for indexing queries. */ apply_filters( 'relevanssi_indexing_restriction', array( 'mysql' => $restriction, 'reason' => '', ) ); -
relevanssi_modify_wp_query
filter/** * Filters the WP_Query object before Relevanssi. */ apply_filters( 'relevanssi_modify_wp_query', $query ); -
relevanssi_optimize_excerpts
filter/** * Optimizes the excerpt creation. */ apply_filters( 'relevanssi_optimize_excerpts', false ); -
relevanssi_orderby
filter/** * Filters the orderby parameter before Relevanssi sorts posts. */ apply_filters( 'relevanssi_orderby', $orderby ); -
relevanssi_post_ok
filter/** * Filters whether the post can be shown to the user. */ apply_filters( 'relevanssi_post_ok', $post_ok, $match->doc ); -
/** * Allows actions to happen before the indexing query is run. */ do_action( 'relevanssi_pre_indexing_query' ); -
/** * Filters whether stopwords should be removed from titles in tokenizing or * not. */ apply_filters( 'relevanssi_remove_stopwords_in_titles', true ); -
/** * Filters the term-balance penalty exponent for this search execution. */ apply_filters( 'relevanssi_term_balance_power', 0.0, $context ); -
relevanssi_valid_status
filter/** * Filters the valid status array. */ apply_filters( 'relevanssi_valid_status', array( 'publish', 'draft', 'private', 'pending', 'future' ) ); -
the_category
filter/** * This filter is documented in wp-includes/category-template.php */ apply_filters( 'the_category', $category->name, '', '' ); -
/** * Filters the accent replacement array. */ apply_filters( 'relevanssi_accents_replacement_arrays', array( 'from' => array( 'a', 'c', 'e', 'i', 'o', 'u', 'n' ), 'to' => array( '(?:a|á|à|â)', '(?:c|ç)', '(?:e|é|è|ê|ë)', '(?:i|í|ì|î|ï)', '(?:o|ó|ò|ô|õ)', '(?:u|ú|ù|ü|û)', '(?:n|ñ)' ), 'from_re' => array( "/(s)('|’)?$/", "/[^\(\|:]('|’)/" ), 'to_re' => array( "(?:(?:'|’)?\\1|\\1(?:'|’)?)", "?('|’)?" ), ) ); -
relevanssi_acceptable_hooks
filter/** * Filters the hooks where Relevanssi scripts are enqueued. */ apply_filters( 'relevanssi_acceptable_hooks', $acceptable_hooks ); -
relevanssi_acf_field_object
filter/** * Filters the ACF field object. */ apply_filters( 'relevanssi_acf_field_object', $field_object, $post_id ); -
relevanssi_acf_field_value
filter/** * Filters the field value before it is used to save the insert data. */ apply_filters( 'relevanssi_acf_field_value', $field_object['choices'][ $field_value ], $field_name, $post_id ); -
relevanssi_add_all_results
filter/** * If true, Relevanssi adds a list of all post IDs found in the query object in * $query->relevanssi_all_results. */ apply_filters( 'relevanssi_add_all_results', false ); -
/** * Filters whether to add the highlight and tracking parameters to the link. */ apply_filters( 'relevanssi_add_highlight_and_tracking', $add_highlight_and_tracking, $link_post ); -
/** * Filters the post types that are blocked in the admin search. */ apply_filters( 'relevanssi_admin_search_blocked_post_types', $blocked_post_types ); -
/** * Filters the admin search results element. */ apply_filters( 'relevanssi_admin_search_element', $post_element, $post ); -
relevanssi_admin_search_ok
filter/** * Filters the admin search. */ apply_filters( 'relevanssi_admin_search_ok', $admin_search_ok, $query ); -
relevanssi_after_index_doc_n
filter/** * Filters the number of queries returned. */ apply_filters( 'relevanssi_after_index_doc_n', $n, $index_post, $remove_first, $custom_fields, $bypass_global_post, $debug ); -
/** * Filters the MySQL query for restricting the search by the post author. */ apply_filters( 'relevanssi_author_query_filter', $query_restrictions, $author ); -
/** * Allows the use of one letter search terms. */ apply_filters( 'relevanssi_block_one_letter_searches', true ); -
/** * Filters the types of ACF fields to exclude from indexing. */ apply_filters( 'relevanssi_blocked_field_types', array( 'repeater', 'flexible_content', 'group' ) ); -
/** * Filters the MySQL query for restricting the search by the by_date. */ apply_filters( 'relevanssi_by_date_query_filter', $query_restrictions, $by_date ); -
/** * Filters each post object Relevanssi caches. */ apply_filters( 'relevanssi_cached_post_object', $post ); -
relevanssi_clean_excerpt
filter/** * Allows cleaning unwanted highlights. */ apply_filters( 'relevanssi_clean_excerpt', $content, $start_emp_token, $end_emp_token ); -
/** * Filters the comment author before indexing. */ apply_filters( 'relevanssi_comment_author_to_index', $comment->comment_author, $comment->comment_ID ); -
/** * Filters the comment content before indexing. */ apply_filters( 'relevanssi_comment_content_to_index', $comment->comment_content, $comment->comment_ID ); -
relevanssi_comparison_order
filter/** * Provides the sorting order for the filter. */ apply_filters( 'relevanssi_comparison_order', array() ); -
relevanssi_content_to_index
filter/** * Can be used to add extra content to the post before indexing. */ apply_filters( 'relevanssi_content_to_index', '', $post_object ); -
relevanssi_create_tables
action/** * Allows adding database tables. */ do_action( 'relevanssi_create_tables', $charset_collate ); -
relevanssi_date_query_filter
filter/** * Filters the MySQL query for restricting the search by the date_query. */ apply_filters( 'relevanssi_date_query_filter', $query_restrictions, $date_query ); -
/** * If true, include non-posts (users, terms) in searches with a date query * filter. */ apply_filters( 'relevanssi_date_query_non_posts', false ); -
/** * Filters the default punctuation replacement value. */ apply_filters( 'relevanssi_default_punctuation_replacement', ' ' ); -
/** * Filters the default tax_query relation. */ apply_filters( 'relevanssi_default_tax_query_relation', 'AND' ); -
relevanssi_didyoumean_query
filter/** * Filters the MySQL query used to fetch potential suggestions from the log. */ apply_filters( 'relevanssi_didyoumean_query', $q ); -
/** * Filters the complete 'Did you mean' suggestion. */ apply_filters( 'relevanssi_didyoumean_suggestion', "$pre<a href='$url'>$suggestion</a>$post" ); -
relevanssi_didyoumean_token
filter/** * Filters the tokens for Did you mean suggestions. */ apply_filters( 'relevanssi_didyoumean_token', trim( $token ) ); -
relevanssi_didyoumean_url
filter/** * Filters the 'Did you mean' suggestion URL. */ apply_filters( 'relevanssi_didyoumean_url', $url, $query, $suggestion ); -
/** * Filters the excerpt-building problem shortcodes. */ apply_filters( 'relevanssi_disable_shortcodes_excerpt', $problem_shortcodes ); -
relevanssi_disable_stopwords
filter/** * Disables stopwords completely. */ apply_filters( 'relevanssi_disable_stopwords', false ); -
/** * Filters the shortcodes Relevanssi disables while indexing posts. */ apply_filters( 'relevanssi_disabled_shortcodes', array_unique( array_merge( $shortcodes, $default_disables ) ) ); -
relevanssi_do_not_index
filter/** * Filters whether a post is indexed or not. */ apply_filters( 'relevanssi_do_not_index', false, $post->ID, $post ); -
relevanssi_ellipsis
filter/** * Filters the ellipsis Relevanssi uses in excerpts. */ apply_filters( 'relevanssi_ellipsis', '...' ); -
/** * Choose whether htmlentities() is run inside <code> tags or not. If your * pages have HTML code inside <code> tags, set this to false. */ apply_filters( 'relevanssi_entities_inside_code', true ); -
/** * Choose whether htmlentities() is run inside <pre> tags or not. If your pages * have HTML code inside <pre> tags, set this to false. */ apply_filters( 'relevanssi_entities_inside_pre', true ); -
relevanssi_exact_match_bonus
filter/** * Filters the exact match bonus. */ apply_filters( 'relevanssi_exact_match_bonus', array( 'title' => 5, 'content' => 2, ) ); -
relevanssi_excerpt
filter/** * Filters excerpt text. */ apply_filters( 'relevanssi_excerpt', $excerpt['text'], $post->ID ); -
relevanssi_excerpt_content
filter/** * Filters the post content after 'the_content'. */ apply_filters( 'relevanssi_excerpt_content', $content, $post, $query ); -
/** * Filters the custom field content for excerpt use. */ apply_filters( 'relevanssi_excerpt_custom_field_content', $custom_field_string, $post_id, $custom_fields ); -
/** * Filters the list of custom fields used for the excerpt. */ apply_filters( 'relevanssi_excerpt_custom_fields', $custom_fields, $post_id ); -
relevanssi_excerpt_gap
filter/** * Adjusts the gap between excerpt candidates. */ apply_filters( 'relevanssi_excerpt_gap', floor( $count_words / 200 - $excerpt_length ), $count_words, $excerpt_length ); -
relevanssi_excerpt_part
filter/** * Filters individual excerpt parts. */ apply_filters( 'relevanssi_excerpt_part', '<span class="excerpt_part">' . $excerpt['text'] . '</span>', $excerpt, $post->ID ); -
relevanssi_excerpt_post
filter/** * Filters whether an excerpt should be added to a post or not. */ apply_filters( 'relevanssi_excerpt_post', true, $post, $query ); -
relevanssi_excerpt_query
filter/** * Filters the search query before excerpt-building. */ apply_filters( 'relevanssi_excerpt_query', $query ); -
/** * Filters the custom field content for excerpt use. */ apply_filters( 'relevanssi_excerpt_specific_custom_field_content', $custom_field_content, $post_id ); -
relevanssi_fallback
filter/** * Filters the fallback search parameters. */ apply_filters( 'relevanssi_fallback', $params ); -
/** * Filters the list of post types Relevanssi does not want to use. */ apply_filters( 'relevanssi_forbidden_post_types', array( 'wp_template_part', 'wp_global_styles', 'wp_navigation', 'nav_menu_item', 'revision', 'acf', 'acf-field', 'acf-field-group', 'acf-taxonomy', 'acf-post-type', 'acf-ui-options-page', 'oembed_cache', 'customize_changeset', 'user_request', 'custom_css', 'cpt_staff_lst_item', 'cpt_staff_lst', 'wp_block', 'amp_validated_url', 'jp_pay_order', 'jp_pay_product', 'jp_mem_plan', 'tablepress_table',... ); -
/** * Filters the list of taxonomies Relevanssi does not want to use. */ apply_filters( 'relevanssi_forbidden_taxonomies', array( 'wp_template_part_area', 'nav_menu', 'link_category', 'amp_validation_error', 'product_visibility', 'wpforms_log_type', 'amp_template', 'edd_commission_status', 'edd_log_type', 'elementor_library_type', 'elementor_library_category', 'elementor_font_type', 'wp_theme', 'fl-builder-template-category', 'fl-builder-template-type', 'wp_pattern_category', 'wpforms_form_tag', ) ); -
relevanssi_fuzzy_query
filter/** * Filters the partial matching search query. */ apply_filters( 'relevanssi_fuzzy_query', "(relevanssi.term LIKE '#term#%' OR relevanssi.term_reverse LIKE CONCAT(REVERSE('#term#'), '%')) ", $term ); -
/** * Filters the arguments for get_approved_comments(). */ apply_filters( 'relevanssi_get_approved_comments_args', $args ); -
relevanssi_get_words_having
filter/** * The minimum limit of occurrances to include a word. */ apply_filters( 'relevanssi_get_words_having', 2 ); -
relevanssi_highlight_query
filter/** * Filters the query during highlighting before tokenizing it. */ apply_filters( 'relevanssi_highlight_query', $query ); -
relevanssi_highlight_regex
filter/** * Filters the regular expression used for highlighting. */ apply_filters( 'relevanssi_highlight_regex', $regex, $pr_term ); -
/** * Runs before tokenizing the terms in highlighting. */ do_action( 'relevanssi_highlight_tokenize' ); -
relevanssi_hits_filter
filter/** * Filters the founds results. */ apply_filters( 'relevanssi_hits_filter', $filter_data, $query ); -
relevanssi_hits_to_show
filter/** * Filters the displayed hits. */ apply_filters( 'relevanssi_hits_to_show', $hits_to_show, $query ); -
/** * Filters the attachment and revision post types. */ apply_filters( 'relevanssi_index_attachment_revision_types', array( 'attachment', 'revision' ) ); -
/** * If this filter returns true, the comments for the post are not indexed. */ apply_filters( 'relevanssi_index_comments_exclude', false, $post_id ); -
relevanssi_index_content
filter/** * If this filter returns false, post content is not indexed at all. */ apply_filters( 'relevanssi_index_content', true, $post_object ); -
/** * Filters the list of custom fields to index before indexing. */ apply_filters( 'relevanssi_index_custom_fields', $custom_fields, $post_id ); -
relevanssi_index_excerpt
filter/** * If this filter returns false, post excerpt is not indexed at all. */ apply_filters( 'relevanssi_index_excerpt', true, $post_object ); -
/** * Sets the indexed post 'type' column in the index. */ apply_filters( 'relevanssi_index_get_post_type', 'post', $post ); -
relevanssi_index_titles
filter/** * If this filter returns false, titles are not indexed at all. */ apply_filters( 'relevanssi_index_titles', true, $post_object ); -
relevanssi_indexing_adjust
filter/** * Sets the indexing adjustment. */ apply_filters( 'relevanssi_indexing_adjust', true ); -
relevanssi_indexing_data
filter/** * Filters the indexing data before it is converted to INSERT queries. */ apply_filters( 'relevanssi_indexing_data', $insert_data, $post ); -
relevanssi_indexing_limit
filter/** * Sets the indexing limit, ie. how many posts are indexed at once. */ apply_filters( 'relevanssi_indexing_limit', 10 ); -
relevanssi_indexing_query
filter/** * Filters the Relevanssi indexing query. */ apply_filters( 'relevanssi_indexing_query', $q ); -
relevanssi_indexing_values
filter/** * Filters the INSERT query VALUES sections before they are inserted in the * INSERT query. */ apply_filters( 'relevanssi_indexing_values', $values, $post ); -
relevanssi_join
filter/** * Filters the meta query JOIN for the Relevanssi search query. */ apply_filters( 'relevanssi_join', $query_join ); -
relevanssi_log_get_user
filter/** * Filters the current user for logs. */ apply_filters( 'relevanssi_log_get_user', wp_get_current_user() ); -
relevanssi_log_query
filter/** * Filters the query. */ apply_filters( 'relevanssi_log_query', $q_no_synonyms, $q, $query ); -
relevanssi_match
filter/** * Filters the Relevanssi post matches. */ apply_filters( 'relevanssi_match', $match, $idf, $term ); -
relevanssi_missing_terms_tag
filter/** * Determines the tag used for missing terms, default <s>. */ apply_filters( 'relevanssi_missing_terms_tag', 's' ); -
/** * Filters the template for showing missing terms. Make sure you include the * '%s', as that is where the missing terms will be inserted. */ apply_filters( 'relevanssi_missing_terms_template', '<span class="missing_terms">' . __( 'Missing', 'relevanssi' ) . ': %s</span>' ); -
relevanssi_modal_search_args
filter/** * Filters the modal search arguments. */ apply_filters( 'relevanssi_modal_search_args', $args, $defaults ); -
/** * Filters the modal search dialog HTML code. */ apply_filters( 'relevanssi_modal_search_dialog_html', $dialog, $args, $form_args ); -
/** * Filters the modal search form arguments. */ apply_filters( 'relevanssi_modal_search_form_args', $form, $modal ); -
relevanssi_modal_search_html
filter/** * Filters the modal search trigger and dialog HTML code. */ apply_filters( 'relevanssi_modal_search_html', $markup, $modal, $form ); -
/** * Filters whether modal search styles are loaded in the page head. */ apply_filters( 'relevanssi_modal_search_preload_style', $should_preload, $post ); -
/** * Filters the CSS classes on a modal search trigger button. */ apply_filters( 'relevanssi_modal_search_trigger_classes', $classes, $args ); -
/** * Filters the HTML code for the modal search trigger button. */ apply_filters( 'relevanssi_modal_search_trigger_html', $trigger, $args ); -
relevanssi_ok_to_log
filter/** * Filters whether a query should be logged or not. */ apply_filters( 'relevanssi_ok_to_log', true, $query, $hits, $user_agent, $ip, $source ); -
relevanssi_order
filter/** * Filters the order parameter before Relevanssi sorts posts. */ apply_filters( 'relevanssi_order', $order ); -
relevanssi_oxygen_element
filter/** * Filters the Oxygen JSON child element. */ apply_filters( 'relevanssi_oxygen_element', $child ); -
/** * Filters the Oxygen Builder section content before the Oxygen Builder * shortcode tags are removed. */ apply_filters( 'relevanssi_oxygen_section_content', $content, $post_id ); -
/** * Allows defining filters to remove Oxygen Builder sections. */ apply_filters( 'relevanssi_oxygen_section_filters', array() ); -
/** * Filters the page builder shortcode. */ apply_filters( 'relevanssi_page_builder_shortcodes', array( '/\[et_pb_code.*?\].*?\[\/et_pb_code\]/im', '/\[et_pb_sidebar.*?\].*?\[\/et_pb_sidebar\]/im', '/\[et_pb_fullwidth_slider.*?\].*?\[\/et_pb_fullwidth_slider\]/im', '/\[et_pb_fullwidth_code.*?\].*?\[\/et_pb_fullwidth_code\]/im', '/\[vc_raw_html.*?\].*?\[\/vc_raw_html\]/im', '/\[fusion_imageframe.*?\].*?\[\/fusion_imageframe\]/im', '/\[fusion_code.*?\].*?\[\/fusion_code\]/im', '/\[\/?et_pb.*... ); -
/** * Filters the MySQL query for restricting the search by the post parent. */ apply_filters( 'relevanssi_parent_query_filter', $query_restrictions, $parent_query ); -
relevanssi_permalink
filter/** * Filters the permalink. */ apply_filters( 'relevanssi_permalink', get_permalink( $post ) ); -
relevanssi_phrase
filter/** * Filters each phrase before it's passed through esc_sql() and used in the * MySQL query. You can use this filter hook to for example run htmlentities() * on the phrase in case your database needs that. */ apply_filters( 'relevanssi_phrase', $phrase ); -
/** * Filters the custom fields for phrase matching. */ apply_filters( 'relevanssi_phrase_custom_fields', relevanssi_get_custom_fields() ); -
relevanssi_phrase_queries
filter/** * Filters the phrase queries. */ apply_filters( 'relevanssi_phrase_queries', $queries, $phrase, $status ); -
relevanssi_phrase_synonyms
filter/** * Controls how synonyms are handled when they appear inside phrases. */ apply_filters( 'relevanssi_phrase_synonyms', true ); -
relevanssi_phrase_taxonomies
filter/** * Filters the taxonomies for phrase matching. */ apply_filters( 'relevanssi_phrase_taxonomies', get_option( 'relevanssi_index_taxonomies_list', array() ) ); -
relevanssi_post_author
filter/** * Filters the post author display_name before indexing it. */ apply_filters( 'relevanssi_post_author', $display_name, $post ); -
relevanssi_post_content
filter/** * Filters the post content before indexing. */ apply_filters( 'relevanssi_post_content', $post_object->post_content, $post_object ); -
/** * Filters the post content after shortcodes but before HTML stripping. */ apply_filters( 'relevanssi_post_content_after_shortcodes', $contents, $post_object ); -
/** * Filters the post content in indexing before tokenization. */ apply_filters( 'relevanssi_post_content_before_tokenize', $contents, $post_object ); -
relevanssi_post_query_filter
filter/** * Filters the MySQL query for restricting the search by post parameters. */ apply_filters( 'relevanssi_post_query_filter', $query_restrictions, $post_query ); -
/** * Filters the MySQL query for restricting the search by the post status. */ apply_filters( 'relevanssi_post_status_query_filter', $query_restrictions, $post_status ); -
relevanssi_post_the_content
action/** * Runs after Relevanssi excerpt building applies `the_content`. */ do_action( 'relevanssi_post_the_content' ); -
/** * Filters the title before tokenizing and indexing. */ apply_filters( 'relevanssi_post_title_before_tokenize', $filtered_title, $post_object ); -
relevanssi_post_to_excerpt
filter/** * Allows filtering the indexed post before building an excerpt from it. */ apply_filters( 'relevanssi_post_to_excerpt', $t_post ); -
relevanssi_post_to_index
filter/** * Allows filtering the indexed post before indexing. */ apply_filters( 'relevanssi_post_to_index', $post, $post ); -
/** * Filters the MySQL query for restricting the search by the post type. */ apply_filters( 'relevanssi_post_type_query_filter', $query_restrictions, $post_type, $include_attachments, $admin_search ); -
/** * Filters the post content before 'the_content'. */ apply_filters( 'relevanssi_pre_excerpt_content', $post->post_content, $post, $query ); -
relevanssi_pre_the_content
action/** * Runs before Relevanssi excerpt building applies `the_content`. */ do_action( 'relevanssi_pre_the_content' ); -
/** * Filters whether the default request is blocked or not. */ apply_filters( 'relevanssi_prevent_default_request', $prevent, $query ); -
/** * Filters the punctuation replacement array. */ apply_filters( 'relevanssi_punctuation_filter', $replacement_array ); -
/** * Filters the list of allowed query arguments. */ apply_filters( 'relevanssi_query_arg_allowlist', $args_allowlist ); -
relevanssi_query_filter
filter/** * Filters the Relevanssi search query. */ apply_filters( 'relevanssi_query_filter', $query ); -
relevanssi_remote_addr
filter/** * Filters the IP address of the searcher. */ apply_filters( 'relevanssi_remote_addr', $_SERVER['REMOTE_ADDR'] ); -
/** * Removes punctuation from the string. */ apply_filters( 'relevanssi_remove_punctuation', $str ); -
relevanssi_render_blocks
filter/** * Filters whether the blocks are rendered or not. */ apply_filters( 'relevanssi_render_blocks', true, $post_object ); -
relevanssi_rendered_block
filter/** * Filters the Gutenberg block after it is rendered. */ apply_filters( 'relevanssi_rendered_block', render_block( $block ), $block ); -
relevanssi_results
filter/** * Filters the results Relevanssi finds. */ apply_filters( 'relevanssi_results', $doc_weight, $q, $scoring_context ); -
relevanssi_search_again
filter/** * Filters the parameters for fallback search. */ apply_filters( 'relevanssi_search_again', $params ); -
relevanssi_search_filters
filter/** * Filters the search parameters. */ apply_filters( 'relevanssi_search_filters', $args ); -
relevanssi_search_form
filter/** * Filters the Relevanssi shortcode search form before it's used. */ apply_filters( 'relevanssi_search_form', $form, $atts ); -
relevanssi_search_ok
filter/** * Filters whether Relevanssi search can be run or not. */ apply_filters( 'relevanssi_search_ok', $search_ok, $query ); -
relevanssi_search_params
filter/** * Filters the Relevanssi search parameters after compiling. */ apply_filters( 'relevanssi_search_params', $search_params, $query ); -
/** * Filters the arguments for the Relevanssi search form taxonomy dropdowns. */ apply_filters( 'relevanssi_searchform_dropdown_args', $args ); -
/** * Filters the resolved class name for a given settings field type. */ apply_filters( "relevanssi_setting_field_class_{$type}", self::$registry[ $type ] ?? null ); -
relevanssi_show_matches
filter/** * Filters the search result breakdown. */ apply_filters( 'relevanssi_show_matches', $result, $post ); -
/** * Filters whether password protected posts are shown in the search results. */ apply_filters( 'relevanssi_show_password_protected', false, $post_id ); -
relevanssi_sort_compare
filter/** * Lets you choose the compare method for fields. */ apply_filters( 'relevanssi_sort_compare', $compare, $key ); -
relevanssi_tabs
filter/** * Allows adding new tabs to the Relevanssi menu. */ apply_filters( 'relevanssi_tabs', $tabs ); -
/** * Filters the taxonomy term content before indexing. */ apply_filters( 'relevanssi_tag_before_tokenize', trim( $term_string ), $post_taxonomy_terms, $taxonomy, $post_id ); -
relevanssi_term_where
filter/** * Filters the term WHERE condition for the Relevanssi MySQL query. */ apply_filters( 'relevanssi_term_where', $term_where, $term ); -
relevanssi_truncate_index
filter/** * Filters the TRUNCATE TABLE query for truncating the index. */ apply_filters( 'relevanssi_truncate_index', "TRUNCATE TABLE $relevanssi_table" ); -
relevanssi_update_options
action/** * Runs after Relevanssi options are added in the installation process. */ do_action( 'relevanssi_update_options' ); -
/** * Filters the capability required to access Relevanssi user searches page. */ apply_filters( 'relevanssi_user_searches_capability', 'edit_pages' ); -
/** * Filters the number of most common queries to show. */ apply_filters( 'relevanssi_user_searches_limit', 100 ); -
/** * Filters the query URL for the user searches page. */ apply_filters( 'relevanssi_user_searches_query_url', $url . '/?s=' . $search_parameter ); -
/** * Filters statuses allowed in admin searches. */ apply_filters( 'relevanssi_valid_admin_status', array( 'draft', 'pending', 'future' ) ); -
/** * Controls whether the week starts on Sunday or Monday. */ apply_filters( 'relevanssi_week_starts_on_sunday', false ); -
relevanssi_where
filter/** * Filters the query restrictions for the Relevanssi query. */ apply_filters( 'relevanssi_where', $query_restrictions ); -
/** * Controls the WooCommerce product visibility filtering. */ apply_filters( 'relevanssi_woocommerce_indexing', $woocommerce_blocks ); -
the_content
filter/** * This filter is documented in wp-includes/post-template.php */ apply_filters( 'the_content', $content ); -
the_title
filter/** * This filter is documented in wp-includes/post-template.php */ apply_filters( 'the_title', $post_object->post_title, $post_object->ID ); -
wpml_object_id
filterapply_filters( 'wpml_object_id', $hit->ID, $hit->post_type, $fallback_to_default ); -
relevanssi_disable_stemmer
actiondo_action( 'relevanssi_disable_stemmer' ); -
relevanssi_enable_stemmer
actiondo_action( 'relevanssi_enable_stemmer' ); -
wpml_current_language
filterapply_filters( 'wpml_current_language', null ); -
wpml_post_language_details
filterapply_filters( 'wpml_post_language_details', null, $post_id ); -
wpml_setting
filterapply_filters( 'wpml_setting', false, 'custom_posts_sync_option' ); -
apply_filters( 'relevanssi_advanced_indexing_config', $advanced_config ); -
do_action( 'relevanssi_advanced_indexing_sidebar_list' ); -
do_action( 'relevanssi_debugging_tab_content' ); -
relevanssi_form_did_you_mean
filterapply_filters( 'relevanssi_form_did_you_mean', $basic_search_config ); -
apply_filters( 'relevanssi_form_recency_cutoff', $weights_config ); -
relevanssi_indexing_options
actiondo_action( 'relevanssi_indexing_options', $request ); -
do_action( 'relevanssi_indexing_tab_advanced' ); -
relevanssi_init
actiondo_action( 'relevanssi_init' ); -
apply_filters( 'relevanssi_truncate_search_queries', 0 ); -
relevanssi_weights_config
filterapply_filters( 'relevanssi_weights_config', $weights_config ); -
wpml_active_languages
filterapply_filters( 'wpml_active_languages', null ); -
wpml_element_language_code
filterapply_filters( 'wpml_element_language_code', null, $element );
Generated from Relevanssi's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Can't find the right hook?
We can build the customisation for you. Describe what you need: