Send admin new order email to logged in user as well

What you have makes sense, except that your variable names dont match. You have $object in your function definition and in the function code you are trying to use $order. Adjusted: /* SEND ADMIN E-MAIL TO LOGGED IN USER */ /* — */ add_filter( ‘woocommerce_email_recipient_new_order’, ‘your_email_recipient_filter_function’, 10, 2); /* Add parents e-mail address to new … Read more

Woocommerce: limit user to see only the products he created

I believe changing the following conditional: if( !current_user_can( ‘manage_options’ ) ) to this one: if( !current_user_can( ‘manage_options’ ) && ‘product’ === $query->get( ‘post_type’ ) ) would do it. Brief explanation: I added a second condition which checks if the query is for WooCommerce products where the post type is product. UPDATE If you want to … Read more

Woo Commerce using WP_Query to get products that match price range, with an additional required product attribute

Your mixing up your meta query and tax query. try this: $params = array( ‘posts_per_page’ => 20, ‘post_type’ => array(‘product’, ‘product_variation’), ‘meta_query’ => array( array( ‘key’ => ‘_price’, ‘value’ => $_POST[‘product_price_min’], ‘compare’ => ‘>=’, ‘type’ => ‘NUMERIC’ ), array( ‘key’ => ‘_price’, ‘value’ => $_POST[‘product_price_max’], ‘compare’ => ‘<=’, ‘type’ => ‘NUMERIC’ ), ), ‘tax_query’ => … Read more

I am trying to make a field show and save from quickedit screen

You have to register your quick edit custom box: function display_custom_quickedit_book( $column_name, $post_type ) { // it would be a good idea to add a nonce here ?> <fieldset class=”inline-edit-col-right inline-edit-book”> <div class=”inline-edit-col column-<?php echo $column_name; ?>”> <label class=”inline-edit-group”> <!– here goes your input –> </label> </div> </fieldset> <?php } add_action( ‘quick_edit_custom_box’, ‘display_custom_quickedit_book’, 10, 2 … Read more