Multisite – Getting Meta query to select from wp_2 tables

From what I understood, you want to get products on US site from UK site. You can use switch_to_blog() to direct your queries to your sub-site. This function uses blog_id as parameter. So, in your case, switch_to_blog(2); //your code to fetch data restore_current_blog(); //this restores query to current sub-site. See documentation: https://developer.wordpress.org/reference/functions/switch_to_blog/

Default URL for category dropdown select option

I found a solution! As I was looking for a fix I ran across this article: https://andrux.net/add-empty-option-to-wp_dropdown_categories/ This is very close to what I was looking for, so I tweaked it. The only thing I did to the form was remove the show_option_none=Select… The form code: <form action=”<?php bloginfo(‘url’); ?>” method=”get” id=”catform”> <?php $parent = … Read more

Add function to Dokan ajax class

This is the core developer of Dokan. There is a much simpler way to use your custom function for this case. This dokan_add_shipping_tracking_info action can be found within this template : /rafsuntaskin.com/wp-content/plugins/dokan/templates/orders/details.php . You can copy this into your theme and change the action to your custom function like this : rt_custom_add_shipping_tracking_info replaces dokan_add_shipping_tracking_info Then … Read more