woocommerce_account_customer_stock_notifications_per_page
Filter the per-page count for the My Account stock-notifications table.
Usage
add_filter( 'woocommerce_account_customer_stock_notifications_per_page', 'wp_kama_woocommerce_account_customer_stock_notifications_per_page_filter' );
/**
* Function for `woocommerce_account_customer_stock_notifications_per_page` filter-hook.
*
* @param int $per_page Number of notifications shown per page.
*
* @return int
*/
function wp_kama_woocommerce_account_customer_stock_notifications_per_page_filter( $per_page ){
// filter...
return $per_page;
}
- $per_page(int)
- Number of notifications shown per page.
Default: {@see self::DEFAULT_PER_PAGE}
Changelog
| Since 11.2.0 | Introduced. |
Where the hook is called
woocommerce_account_customer_stock_notifications_per_page
woocommerce/src/Internal/StockNotifications/Frontend/MyAccountEndpoint.php 307
$per_page = (int) apply_filters( 'woocommerce_account_customer_stock_notifications_per_page', self::DEFAULT_PER_PAGE );