WooCommerce: How can I get orders with a custom ID in order meta data object?

You would add the meta_query portion to your wc_get_orders() as the only filter … function woocommerce_account_orders( $current_page ) { $current_page = empty( $current_page ) ? 1 : absint( $current_page ); $customer_orders = wc_get_orders( apply_filters( ‘woocommerce_my_account_my_orders_query’, array( ‘page’ => $current_page, ‘paginate’ => true, ‘meta_query’ => array( array( ‘key’ => ‘mycustom_id’, ‘value’ => get_current_user_id(), ‘compare’ => ‘=’ … Read more

WordPress menu link doesn’t work properly

I guess you mean this link? <a class=”navbar-brand” href=”https://wordpress.stackexchange.com/questions/325734/<?php site_url(“home’); ?>”>Homee</a> Then I’m sure it won’t work on any other page than home. It’s because site_url() function doesn’t print anything – it returns its value. And don’t print it either. That means, that the link above is empty 😉 You should change it to this: … Read more