LLMS_Order::get_creation_args( string $title = '' )
An array of default arguments to pass to $this->create() when creating a new post
Description Description
Parameters Parameters
- $title
-
(string) (Optional) Title to create the post with
Default value: ''
Return Return
(array)
Source Source
File: includes/models/model.llms.order.php
protected function get_creation_args( $title = '' ) { if ( empty( $title ) ) { $title = sprintf( __( 'Order – %s', 'lifterlms' ), strftime( _x( '%b %d, %Y @ %I:%M %p', 'Order date parsed by strftime', 'lifterlms' ), current_time( 'timestamp' ) ) ); } return apply_filters( 'llms_' . $this->model_post_type . '_get_creation_args', array( 'comment_status' => 'closed', 'ping_status' => 'closed', 'post_author' => 1, 'post_content' => '', 'post_excerpt' => '', 'post_password' => uniqid( 'order_' ), 'post_status' => 'llms-' . apply_filters( 'llms_default_order_status', 'pending' ), 'post_title' => $title, 'post_type' => $this->get( 'db_post_type' ), ), $this ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |
User Contributed Notes User Contributed Notes
Permalink: