$user_id, 'number' => 20, 'offset' => 20 * ( intval( $page ) - 1 ), 'type' => 'sale', 'status__not_in' => array( 'trash' ), ) ); /** * Fires before the order history, whether or not orders have been found. * * @since 3.0 * @param array $orders The array of order objects for the current user. * @param int $user_id The current user ID. */ do_action( 'edd_pre_order_history', $orders, $user_id ); if ( $orders ) : do_action( 'edd_before_order_history', $orders ); ?>