LLMS_Abstract_User_Engagement::__construct( string|int|LLMS_Post_Model|WP_Post $model, array $args = array() )
Constructor.
Parameters Parameters
- $model
-
(string|int|LLMS_Post_Model|WP_Post) (Required) 'new', WP post id, instance of an extending class, instance of WP_Post.
- $args
-
(array) (Optional) Args to create the post, only applies when $model is 'new'.
Default value: array()
Return Return
(void)
Source Source
File: includes/abstracts/llms-abstract-user-engagement.php
public function __construct( $model, $args = array() ) { $this->engagement_type = $this->model_post_type; parent::__construct( $model, $args ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
6.0.0 | Introduced. |