Inventory_Presser_Plugin::custom_fields_key_limit( int $limit )
Filter callback that sets the number of meta keys in the Custom Fields panel in the editor. Typcially, this value is 30. We register more than 30 fields!
Parameters
- $limit
-
(int) (Required) The number of meta keys in the Custom Fields panel in the editor.
Return
(int)
Source
File: inventory-presser.php
public function custom_fields_key_limit( $limit ) { if ( INVP::POST_TYPE !== get_post_type() ) { return $limit; } return 9999; }
Expand full source code Collapse full source code View on Github