LLMS_Order::set_status( string $status )
Update the status of an order
Parameters Parameters
- $status
-
(string) (Required) Status name, accepts unprefixed statuses.
Return Return
(void)
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 );
Expand full source code Collapse full source code View on GitHub
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. |