LearnDash_Settings_Metabox_Course_Display_Content::resolve_per_page_value( int|string $value, string $global_setting_key )
Resolves a Custom Pagination per-page value, falling back to the global default when the submitted value is not a positive integer.
Description #
Parameters #
- $value
-
(int|string) (Required) Submitted per-page value.
- $global_setting_key
-
(string) (Required) Global pagination setting key to fall back to ('course_pagination_lessons' | 'course_pagination_topics').
Return #
(int) A positive per-page value.
Source #
File: includes/settings/settings-metaboxes/class-ld-settings-metabox-course-display-content.php
Changelog #
| Version | Description |
|---|---|
| 5.1.7 | Introduced. |