Get WP All Export row ID

We’ve got a solution from plugin’s developers: Add this code to theme’s functions.php file // run a function before export starts, it deletes counter value from DB add_action(‘pmxe_before_export’, ‘wp_all_export_pmxe_before_export’, 10, 1); function wp_all_export_pmxe_before_export($export_id) { delete_option(‘wp_all_export_current_row’); } Add this to All Export plugin’s Edit Export screen under ” Export the value returned by a PHP function” … Read more

Getting one specific value from get_children array

If you want to query by a post author , you can try the author input argument: $sub_orders = get_children( array( ‘author’ => $seller_id, ‘post_parent’ => $reservation->transaction_id, ‘post_type’ => ‘shop_order’, ‘post_status’ => array( ‘wc-pending’, ‘wc-completed’, ‘wc-processing’, ‘wc-on-hold’ ) ) ); Note that get_children() calls get_posts(), that is again a wrapper for WP_Query, so you can … Read more

Woocommerce Custom Checkout

You can create a custom page and add that custom page url in below function. So all WP “Proceed to Checkout” will go to the custom page. And in that page you can have a link to Final Cart Page and add the checkout link there. add_filter(‘woocommerce_get_checkout_url’, ‘wpse_redirect_checkout’); function wpse_redirect_checkout($url) { global $woocommerce; $checkout_url=”http://www.example.com/custom-checkout-page”; return … Read more

Categories and Tags Conflict after Woocommerce Installation

I was able to resolve this issue by changing the rewrite slug from product-tag to product_tag when registering the taxonomy. It looks like WP does not like the hyphen and prefers the underscore. $args = array( ‘hierarchical’ => false, ‘labels’ => $labels, ‘show_ui’ => true, ‘show_admin_column’ => true, ‘update_count_callback’ => ‘_update_post_term_count’, ‘query_var’ => true, ‘rewrite’ … Read more