Handy Code Snippets / How To / PHP / Plugins

List More Custom Field Names

ListMoreCustomFieldNames

First install & activate the List More Custom Field Names plugin.

Then add the following code to your functions.php or your custom plugin file.

1
2
// List more custom field names
add_filter( 'c2c_list_more_custom_field_names', create_function( '$limit', 'return 1500;' ) );

You can change the 1500 in the example to any number you would like and that is how many custom field names will be displayed in the drop down when you add a new custom field to your post/page.

Related Posts

Handy Code Snippets / How To / No Plugins Necessary / PHP / WooCommerce

Handy WooCommerce Store PHP Snippets

woocommerce-codesnippets

Here are some Handy WooCommerce Store PHP Snippets that you might find useful... Auto-Complete All WooCommerce Orders [cc lang="php"]...

Handy Code Snippets / How To / No Plugins Necessary / PHP

Handy PHP Snippets for WordPress Sites

php-code-snippets

Here are some very handy PHP snippets I have collected over the years... Use a shortcode inside PHP [cc lang="php"]echo do_shortcod...

No comments

Leave a Reply