LLMS_Order::set_status( string $status )

Update the status of an order


Parameters Parameters

$status

(string) (Required) Status name, accepts unprefixed statuses.


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/models/model.llms.order.php

	 * @since 3.10.0
	 * @since 3.19.0 Unknown.
	 *
	 * @param string $date_key Date field to set.
	 * @param string $date_val Date string or a unix time stamp.
	 */
	public function set_date( $date_key, $date_val ) {

		// Convert to timestamp if not already a timestamp.
		if ( ! is_numeric( $date_val ) ) {
			$date_val = strtotime( $date_val );


Top ↑

Changelog Changelog

Changelog
Version Description
5.2.0 Prefer array_key_exists( $key, $keys ) over in_array( $key, array_keys( $assoc_array ) ).
3.8.0
3.10.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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