W3cubDocs

/WordPress

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

$limitint
Number of custom fields to retrieve. Default 30.

Source

$limit = apply_filters( 'postmeta_form_limit', 30 );

Changelog

Version Description
2.1.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/postmeta_form_limit