我不明白为什么这不管用。我的理解是,在添加操作之后,但在它被触发之前,您必须删除它。这就是我在这里做的?这里有什么我不明白的吗?调试wordpress真的让我感到困惑,因为你真的不能通过它吗?
<?php
/**
* Functions hooked into storefront_header action
*
* @hooked storefront_header_container - 0
* @hooked storefront_skip_links - 5
* @hooked storefront_social_icons - 10
* @hooked storefront_site_branding - 20
* @hooked storefront_secondary_navigation - 30
* @hooked storefront_product_search - 40
* @hooked storefront_header_container_close - 41
* @hooked storefront_primary_navigation_wrapper - 42
* @hooked storefront_primary_navigation - 50
* @hooked storefront_header_cart - 60
* @hooked storefront_primary_navigation_wrapper_close - 68
*/
remove_action('storefront_header', 'storefront_product_search', 40);
do_action( 'storefront_header' );
?>发布于 2020-06-29 18:49:46
https://stackoverflow.com/questions/62644767
复制相似问题