{"id":1775,"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":"breadcrumbs-actions-filters","status":"publish","type":"docs","link":"https:\/\/www.8theme.com\/documentation\/xstore\/xstore-hooks-filters\/breadcrumbs-actions-filters\/","title":{"rendered":"Breadcrumbs actions\/filters"},"content":{"rendered":"<p><strong>Action that starts once breadcrumbs is shown on the page<\/strong><\/p>\n<p>Action name: <code class=\"inline-code\">etheme_page_heading<\/code>  <\/p>\n<p>Action usage:<\/p>\n<pre>add_action(&#39;etheme_page_heading&#39;, function() { ?&gt;\n\t&lt;div style=&quot;background-color: #000;color: #fff;line-height: 1;padding: 12px;&quot;&gt;\n\t\t &lt;div&gt;\n\t\t\t &lt;marquee&gt;This is custom text above page heading on each page has breadcrumbs&lt;\/marquee&gt;\n\t\t&lt;\/div&gt;\n\t&lt;\/div&gt;\n&lt;?php }, 5);\n<\/pre>\n<p><img decoding=\"async\"  src=\"https:\/\/s3.amazonaws.com\/helpscout.net\/docs\/assets\/5809d09590336070ba24798e\/images\/65af92e687e88924b5fa1ecd\/file-in80uylRgE.png\" style=\"max-width: 100%; \" \/><\/p>\n<p>Change the number after the function to make it shown before\/after breadcrumbs (higher is more under) <\/p>\n<p><img decoding=\"async\"  src=\"https:\/\/s3.amazonaws.com\/helpscout.net\/docs\/assets\/5809d09590336070ba24798e\/images\/65af931587e88924b5fa1ece\/file-9IAtrXLXii.png\" style=\"max-width: 100%; \" \/><\/p>\n<p><strong>Action that starts before breadcrumbs main content<\/strong><\/p>\n<p>Action name: <code class=\"inline-code\">etheme_before_breadcrumbs<\/code>  <\/p>\n<p>Action usage:<\/p>\n<pre>add_action(&#39;etheme_before_breadcrumbs&#39;, function() { ?&gt;\n\t&lt;div style=&quot;text-align: center;&quot;&gt;\n\t\t&lt;div&gt;This is custom text above page heading on each page has breadcrumbs&lt;\/div&gt;\n\t&lt;\/div&gt;\n&lt;?php }, 5);\n<\/pre>\n<p><img decoding=\"async\"  src=\"https:\/\/s3.amazonaws.com\/helpscout.net\/docs\/assets\/5809d09590336070ba24798e\/images\/65af9337ffe4f977717baf7b\/file-5nm8RVJlr4.png\" style=\"max-width: 100%; \" \/><\/p>\n<p><strong>Action that starts after breadcrumbs main content<\/strong><\/p>\n<p>Action name: <code class=\"inline-code\">etheme_after_breadcrumbs<\/code>  <\/p>\n<p>Action usage:<\/p>\n<pre>add_action(&#39;etheme_after_breadcrumbs&#39;, function() { ?&gt;\n\t&lt;div style=&quot;text-align: center;&quot;&gt;\n\t\t&lt;div&gt;This is custom text below page heading on each page has breadcrumbs&lt;\/div&gt;\n\t &lt;\/div&gt;\n&lt;?php }, 5);\n<\/pre>\n<p><img decoding=\"async\"  src=\"https:\/\/s3.amazonaws.com\/helpscout.net\/docs\/assets\/5809d09590336070ba24798e\/images\/65af935587e88924b5fa1ecf\/file-2kQY0Ti9BJ.png\" style=\"max-width: 100%; \" \/><\/p>\n<p><b>Filter to change title to title with endpoint on my account page<\/b><\/p>\n<p>Filter name: <code class=\"inline-code\">etheme_breadcrumbs_page_title<\/code>  <\/p>\n<p>Filter usage:<\/p>\n<pre>add_filter (&#39;etheme_breadcrumbs_page_title&#39;, &#39;et_breadcrumbs_title&#39;, 10, 1);\n\nfunction et_breadcrumbs_title($subtitle){\n\t if (!class_exists(&#39;WooCommerce&#39;))\n\t \treturn $subtitle;&lt;br&gt;\n\t if (is_account_page() &amp;&amp; is_user_logged_in()){\n\t \tif (is_wc_endpoint_url()){\n\t\t\tglobal $wp;\n\t\t \tglobal $wp_query;\n\t\t \t$endpoint       = WC()-&gt;query-&gt;get_current_endpoint();\n\t \t\t$action         = isset( $_GET[&#39;action&#39;] ) ? sanitize_text_field( wp_unslash( $_GET[&#39;action&#39;] ) ) : &#39;&#39;;\n\t\t \t$endpoint_title = WC()-&gt;query-&gt;get_endpoint_title( $endpoint, $action );\n\t\t \tif ($endpoint_title){\n\t \t\t\t$subtitle .= &#39; - &#39;.$endpoint_title;\n\t \t\t}\n\t \t}\n\t }\n\t return $subtitle;\n}\n<\/pre>\n<p>before -&gt; <\/p>\n<p><img decoding=\"async\"  src=\"https:\/\/s3.amazonaws.com\/helpscout.net\/docs\/assets\/5809d09590336070ba24798e\/images\/65af93d74b18e475714bf0cb\/file-4kVFbCmn8U.png\" style=\"max-width: 100%; \" \/><\/p>\n<p>( without endpoint after title )<\/p>\n<p>after -&gt; <\/p>\n<p><img decoding=\"async\"  src=\"https:\/\/s3.amazonaws.com\/helpscout.net\/docs\/assets\/5809d09590336070ba24798e\/images\/65af93f911a1ca1c986cd2b6\/file-IK3vIo0JEh.png\" style=\"max-width: 100%; \" \/><\/p>\n<p><\/p>\n<p>( with page endpoint after title )<\/p>\n<p><strong>Filter to remove shop step from breadcrumbs on product taxonomies pages<\/strong> (some users want to hide it or in some cases, it is shown twice)<\/p>\n<p>Filter name: <code class=\"inline-code\">etheme_breadcrumbs_shop_step<\/code>  <\/p>\n<p>Filter usage:<\/p>\n<pre>add_filter( &#39;etheme_breadcrumbs_shop_step&#39;, &#39;__return_false&#39;);\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Action that starts once breadcrumbs is shown on the page Action name: etheme_page_heading Action usage: add_action(&#39;etheme_page_heading&#39;, function() { ?&gt; &lt;div style=&quot;background-color: #000;color: #fff;line-height: 1;padding: 12px;&quot;&gt; &lt;div&gt; &lt;marquee&gt;This is custom text above page heading on each page has breadcrumbs&lt;\/marquee&gt; &lt;\/div&gt; &lt;\/div&gt; &lt;?php }, 5); Change the number after the function to make it shown before\/after breadcrumbs [&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-1775","docs","type-docs","status-publish","hentry","doc_category-xstore-hooks-filters"],"aioseo_notices":[],"year_month":"2026-04","word_count":342,"total_views":"2949","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\/1775","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=1775"}],"version-history":[{"count":0,"href":"https:\/\/www.8theme.com\/documentation\/wp-json\/wp\/v2\/docs\/1775\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.8theme.com\/documentation\/wp-json\/wp\/v2\/media?parent=1775"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.8theme.com\/documentation\/wp-json\/wp\/v2\/doc_category?post=1775"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.8theme.com\/documentation\/wp-json\/wp\/v2\/doc_tag?post=1775"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}