{"id":1773,"date":"2024-09-26T13:44:50","date_gmt":"2024-09-26T13:44:50","guid":{"rendered":"http:\/\/docs"},"modified":"2024-09-26T13:44:50","modified_gmt":"2024-09-26T13:44:50","password":"","slug":"header-builder-menu-filters","status":"publish","type":"docs","link":"https:\/\/www.8theme.com\/documentation\/xstore\/xstore-hooks-filters\/header-builder-menu-filters\/","title":{"rendered":"Header Builder Menu filters"},"content":{"rendered":"<h4>Filter name: <code class=\"inline-code\">menu_item_with_sublists<\/code>  <\/h4>\n<p>Filter to disable all submenu items for menus in the Header Builder.<\/p>\n<p><strong>Filter usage:<\/strong><\/p>\n<pre>add_filter(&#39;menu_item_with_sublists&#39;, &#39;__return_false&#39;);\n<\/pre>\n<p><strong>Example:\u00a0<\/strong><\/p>\n<p>Before using the filter &#8211; the submenu is shown<\/p>\n<p><img decoding=\"async\"  src=\"https:\/\/s3.amazonaws.com\/helpscout.net\/docs\/assets\/5809d09590336070ba24798e\/images\/627a8f4dc01fce37d9b11dce\/file-m9Do4EGsYS.png\" style=\"width: 616px; max-width: 100%; \" \/><\/p>\n<p>After using the filter &#8211; no submenu<\/p>\n<p><img decoding=\"async\"  src=\"https:\/\/s3.amazonaws.com\/helpscout.net\/docs\/assets\/5809d09590336070ba24798e\/images\/627a8f9a8bf21a2e2b6d2c23\/file-gkjiq8Gq8k.png\" style=\"width: 617px; max-width: 100%; \" \/><\/p>\n<h4>Filter name: <code class=\"inline-code\">menu_item_dropdown_full_width<\/code>  <\/h4>\n<p>Filter to make the first submenu full-width (for the menus in the Header Builder)<\/p>\n<p><strong>Filter usage:<\/strong><\/p>\n<pre>add_filter(&#39;menu_item_dropdown_full_width&#39;, &#39;__return_true&#39;);\n<\/pre>\n<p><strong>Example:\u00a0<\/strong><\/p>\n<p>Before using the filter &#8211; <\/p>\n<p><img decoding=\"async\"  src=\"https:\/\/s3.amazonaws.com\/helpscout.net\/docs\/assets\/5809d09590336070ba24798e\/images\/65ae6d3398aa997ae8316507\/file-O6nU1etoUB.png\" style=\"width: 100%; max-width: 100%; \" \/><\/p>\n<p>( submenu limited by settings of columns for item or container width &#8211; <\/p>\n<p><img decoding=\"async\"  src=\"https:\/\/s3.amazonaws.com\/helpscout.net\/docs\/assets\/5809d09590336070ba24798e\/images\/65ae6d5533fd8c767f4f8988\/file-5DCiHg4Y0S.png\" style=\"width: 100%; max-width: 100%; \" \/><\/p>\n<p>)\u00a0<\/p>\n<p>After using the filter &#8211;\u00a0 <\/p>\n<p><img decoding=\"async\"  src=\"https:\/\/s3.amazonaws.com\/helpscout.net\/docs\/assets\/5809d09590336070ba24798e\/images\/65ae6d88c231e622d44b39f2\/file-UvzZi8XMmC.png\" style=\"width: 100%; max-width: 100%; \" \/><\/p>\n<p>( submenu is stretched by window width )<\/p>\n<h4>Filter name: <code class=\"inline-code\">menu_dropdown_ajax<\/code>  <\/h4>\n<p>Filter to make submenus ajax loading (for menus in the Header Builder)<\/p>\n<p><strong>Filter usage:<\/strong><\/p>\n<pre>add_filter(&#39;menu_dropdown_ajax&#39;, &#39;__return_true&#39;);\n<\/pre>\n<p><strong>Example:<\/strong>\u00a0<\/p>\n<p>Before using the filter &#8211; <\/p>\n<p><img decoding=\"async\"  src=\"https:\/\/s3.amazonaws.com\/helpscout.net\/docs\/assets\/5809d09590336070ba24798e\/images\/65ae6e1fc231e622d44b39f4\/file-s55K1xLh5V.png\" style=\"width: 100%; max-width: 100%; \" \/><\/p>\n<p><\/p>\n<p>( submenu is loaded with page load )\u00a0<\/p>\n<p>After using the filter &#8211; <\/p>\n<p><img decoding=\"async\"  src=\"https:\/\/s3.amazonaws.com\/helpscout.net\/docs\/assets\/5809d09590336070ba24798e\/images\/65ae6e41c231e622d44b39f5\/file-79HliQ9gK5.png\" style=\"width: 100%; max-width: 100%; \" \/><\/p>\n<p><\/p>\n<p>( submenu is not loaded untill user iterate with menu item )<\/p>\n<h4>Filter name: <code class=\"inline-code\">menu_item_with_svg_arrow<\/code>  <\/h4>\n<p>Filter to disable arrows showing that there are submenus (for menus in the Header Builder)<\/p>\n<p><strong>Filter usage:<\/strong><\/p>\n<pre>add_filter(&#39;menu_item_with_svg_arrow&#39;, &#39;__return_false&#39;, 20);\n<\/pre>\n<p><strong>Example:\u00a0<\/strong><\/p>\n<p>Before using the filter &#8211; <\/p>\n<p><img decoding=\"async\"  src=\"https:\/\/s3.amazonaws.com\/helpscout.net\/docs\/assets\/5809d09590336070ba24798e\/images\/65ae6e57c231e622d44b39f6\/file-7fDJU9j6sJ.png\" style=\"width: 100%; max-width: 100%; \" \/><\/p>\n<p><\/p>\n<p>(arrows are shown in items that have submenus)\u00a0<\/p>\n<p>After using the filter &#8211; <\/p>\n<p><img decoding=\"async\"  src=\"https:\/\/s3.amazonaws.com\/helpscout.net\/docs\/assets\/5809d09590336070ba24798e\/images\/65ae6e7ec231e622d44b39f7\/file-FIeFb12tug.png\" style=\"width: 100%; max-width: 100%; \" \/><\/p>\n<p>(no arrows are shown)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Filter name: menu_item_with_sublists Filter to disable all submenu items for menus in the Header Builder. Filter usage: add_filter(&#39;menu_item_with_sublists&#39;, &#39;__return_false&#39;); Example:\u00a0 Before using the filter &#8211; the submenu is shown After using the filter &#8211; no submenu Filter name: menu_item_dropdown_full_width Filter to make the first submenu full-width (for the menus in the Header Builder) Filter usage: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"doc_category":[48],"doc_tag":[],"class_list":["post-1773","docs","type-docs","status-publish","hentry","doc_category-xstore-hooks-filters"],"aioseo_notices":[],"year_month":"2026-04","word_count":213,"total_views":"2952","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"author_nicename":"docs","author_url":"https:\/\/www.8theme.com\/documentation\/author\/docs\/"},"doc_category_info":[{"term_name":"XStore Hooks &amp; Filters","term_url":"https:\/\/www.8theme.com\/documentation\/xstore\/xstore-hooks-filters\/"}],"doc_tag_info":[],"author_list":[{"ID":"1","user_login":"docs","display_name":"docs","id":"1"}],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/www.8theme.com\/documentation\/wp-json\/wp\/v2\/docs\/1773","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.8theme.com\/documentation\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.8theme.com\/documentation\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.8theme.com\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.8theme.com\/documentation\/wp-json\/wp\/v2\/comments?post=1773"}],"version-history":[{"count":0,"href":"https:\/\/www.8theme.com\/documentation\/wp-json\/wp\/v2\/docs\/1773\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.8theme.com\/documentation\/wp-json\/wp\/v2\/media?parent=1773"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.8theme.com\/documentation\/wp-json\/wp\/v2\/doc_category?post=1773"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.8theme.com\/documentation\/wp-json\/wp\/v2\/doc_tag?post=1773"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}