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.


Top ↑

Source

File: wp-admin/includes/template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.