mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-05 05:04:31 +00:00
Generalize the hook documentation for the set-screen-option filter.
The filter covers more than [items]_per_page screen options. Fixes #26186. git-svn-id: https://develop.svn.wordpress.org/trunk@27379 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -405,11 +405,18 @@ function set_screen_options() {
|
||||
default:
|
||||
|
||||
/**
|
||||
* Filter the default of number of rows value to use for item listings.
|
||||
* Filter a screen option value before it is set.
|
||||
*
|
||||
* The filter can also be used to modify non-standard [items]_per_page
|
||||
* settings. See the parent function for a full list of standard options.
|
||||
*
|
||||
* Returning false to the filter will skip saving the current option.
|
||||
*
|
||||
* @since 2.8.0
|
||||
*
|
||||
* @param bool|int $value The number of rows value. Default false.
|
||||
* @see set_screen_options()
|
||||
*
|
||||
* @param bool|int $value Screen option value. Default false to skip.
|
||||
* @param string $option The option name.
|
||||
* @param int $value The number of rows to use.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user