function set_idedd_project_pairing($post)
{
    // Add an nonce field so we can check for it later.
    wp_nonce_field('set_idedd_project_pairing', 'set_idedd_project_pairing_nonce');
    $value = get_post_meta($post->ID, 'idedd_project_pairing', true);
    $fields = array(array('before' => '<p>' . __('If matching IgnitionDeck project to Easy Digital Downloads, please enter the download ID here.', 'ignitiondeck') . __('Otherwise, leave this field blank.', 'ignitiondeck') . '</p>', 'label' => __('Download ID', 'ignitiondeck'), 'value' => isset($value) ? $value : '', 'name' => 'idedd_project_pairing', 'type' => 'number'));
    $form = new ID_Form($fields);
    echo apply_filters('idedd_project_pairing_form', $form->build_form());
}
Esempio n. 2
0
 function display_form()
 {
     $id_form = new ID_Form($this->form);
     $output = $id_form->build_form($this->vars);
     return $output;
 }