LLMS_Order::get_notes( integer $number = 10, integer $page = 1 )
Get an array of the order notes
Description Description
Each note is actually a WordPress comment.
Parameters Parameters
- $number
-
(integer) (Optional) Number of comments to return.
Default value: 10
- $page
-
(integer) (Optional) Page number for pagination.
Default value: 1
Return Return
(array)
Source Source
File: includes/models/model.llms.order.php
public function get_notes( $number = 10, $page = 1 ) { $comments = get_comments( array( 'status' => 'approve', 'number' => $number, 'offset' => ( $page - 1 ) * $number, 'post_id' => $this->get( 'id' ), ) ); return $comments; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |