You appear to be a bot. Output may be restricted
Description
Get the parsed notes for a customer as an array
Usage
$array = EDD_Customer::get_notes( $length, $paged );
Parameters
- $length
- ( integer ) optional default: 20 – The number of notes to get
- $paged
- ( integer ) optional default: 1 – What note to start at
Returns
array The notes requsted
Source
File name: easy-digital-downloads/includes/class-edd-customer.php
Lines:
1 to 13 of 13
public function get_notes( $length = 20, $paged = 1 ) { $length = is_numeric( $length ) ? $length : 20; $offset = is_numeric( $paged ) && $paged != 1 ? ( ( absint( $paged ) - 1 ) * $length ) : 0; $all_notes = $this->get_raw_notes(); $notes_array = array_reverse( array_filter( explode( "\n\n", $all_notes ) ) ); $desired_notes = array_slice( $notes_array, $offset, $length ); return $desired_notes; }