postmeta_form_limit WordPress Filter Hook
The postmeta_form_limit hook allows you to specify the maximum number of postmeta fields that can be displayed in the postmeta form. This can be useful if you want to limit the amount of data that can be entered into the postmeta form.
apply_filters( 'postmeta_form_limit', int $limit ) #
Filters the number of custom fields to retrieve for the drop-down in the Custom Fields meta box.
Parameters
- $limit
(int)Number of custom fields to retrieve. Default 30.
Source
Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |