LLMS_Controller_Orders::set_untrash_status( string $new_status, int $post_id, string $previous_status )

Sets an order’s post status to llms-pending when untrashing an order.


Description Description

This is a filter hook callback for the WP core filter wp_untrash_post_status.


Top ↑

Parameters Parameters

$new_status

(string) (Required) The new status of the post after untrashing.

$post_id

(int) (Required) The WP_Post ID of the order.

$previous_status

(string) (Required) The status of the post at the point where it was trashed.


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/controllers/class.llms.controller.orders.php

			);

			$order->add_note( __( 'Recurring charge aborted because the purchased product does not exist anymore.', 'lifterlms' ) );
			return false;

		}

		// Passed validation, hand off to the gateway.
		$gateway->handle_recurring_transaction( $order );
		return true;

	}

	/**
	 * Sets an order's post status to `llms-pending` when untrashing an order.
	 *
	 * This is a filter hook callback for the WP core filter `wp_untrash_post_status`.
	 *
	 * @since 7.0.0
	 *
	 * @param string $new_status      The new status of the post after untrashing.
	 * @param int    $post_id         The WP_Post ID of the order.


Top ↑

Changelog Changelog

Changelog
Version Description
7.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.