Programatically add options to “add new” custom field dropdown
You cannot do that with pure PHP, because the fields are fetched from existing fields, and there is no hook. But you can use JavaScript, check if the post type supports custom fields and the field does not exist already – and insert it: <?php # -*- coding: utf-8 -*- /* Plugin Name: Extend custom … Read more