Filter
rpress_customer_notes_per_page
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#
| Parameter | Type | Description |
|---|---|---|
$per_page | int | Notes 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), inrpress_customer_notes_view()
Was this page helpful?
