Wordpress の子テーマ、WooCommerce テーマ Storefront を使用しています。
Storefront ヘッダー フック関数は次のように並べられます。
<?php
/**
* Functions hooked into storefront_header action
*
* @hooked storefront_skip_links - 0
* @hooked storefront_social_icons - 10
* @hooked storefront_site_branding - 20
* @hooked storefront_secondary_navigation - 30
* @hooked storefront_product_search - 40
* @hooked storefront_primary_navigation_wrapper - 42
* @hooked storefront_primary_navigation - 50
* @hooked storefront_header_cart - 60
* @hooked storefront_primary_navigation_wrapper_close - 68
*/
do_action( 'storefront_header' ); ?>
product_search
が の前になるように順序を変更したいと思いsecondary_navigation
ます。
私は店先のファイルを調べましたが、この注文がどこに設定されているかを見つけることができず、アイテムが個別に設定されているだけです.
誰でも私がフックするのを手伝ってくれますか、注文を変更するために必要なことをしてくれますか?