<?php $meta = meadow_register_meta(array('asset_type' => 'post', 'post_type' => 'post', 'key' => 'subtitle', 'authentication_callback' => '__return_true', 'sanitization_callback' => '__noop_sanitizer')); // Create a UI control for the metadata. $control = new Meadow_Postmeta_UI_Control(array('meta' => $meta, 'type' => 'text', 'label' => __('Subtitle'))); // Stuff the control into a section. $section = new Meadow_Postmeta_UI_Section(array('location' => 'metabox')); $section->add_control($control);
<?php $meta = meadow_register_meta(array('asset_type' => 'option', 'key' => 'disallow_something', 'authentication_callback' => '__return_true', 'sanitization_callback' => '__noop_sanitizer')); new Meadow_Option_UI_Control(array('meta' => $meta, 'type' => 'text', 'label' => __('Disallow Something'), 'page' => 'general', 'section' => 'default'));