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