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.


Top ↑

Parameters Parameters

$number

(integer) (Optional) Number of comments to return.

Default value: 10

$page

(integer) (Optional) Page number for pagination.

Default value: 1


Top ↑

Return Return

(array)


Top ↑

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;

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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