Skip to content
Docs
Get RestroPress

Filter

rpress_customer_notes_per_page

Updated
On this page

Filters the number of customer notes shown per page on the Notes view.

Sets the page size used to count pages and to load notes with RPRESS_Customer::get_notes(). The default is 20. Return a positive integer; zero would cause a division by zero when the page count is calculated.

Parameters#

ParameterTypeDescription
$per_pageintNotes per page. Defaults to 20.

Return value#

int. The number of notes per page.

Example#

function my_customer_notes_per_page( $per_page ) {
	return 50;
}
add_filter( 'rpress_customer_notes_per_page', 'my_customer_notes_per_page' );

Source#

Applied in:

  • includes/admin/customers/customers.php (line 655), in rpress_customer_notes_view()
Was this page helpful?