public function MPT_default_values() { $options = get_option('MPT_plugin_settings'); /* Options Never set */ if (!$options) { require_once dirname(__FILE__) . '/inc/default_values.php'; $options_default = default_options_settings(TRUE); update_option('MPT_plugin_settings', $options_default); } }
</div> <div id="hide-before-import" style="display:none"> <div id="progressbar"></div> <div id="results" ></div> </div> <?php } ?> <form method="post" action="options.php" > <?php settings_fields('MPT-plugin-settings'); ?> <?php $options = wp_parse_args(get_option('MPT_plugin_settings'), default_options_settings(FALSE)); ?> <table id="general-options" class="form-table"> <tbody> <tr valign="top"> <th scope="row"> <?php _e('Relevant post type', 'mpt'); ?> </th> <td> <?php $post_types_default = get_post_types('', 'objects'); unset($post_types_default['attachment'], $post_types_default['revision'], $post_types_default['nav_menu_item']); foreach ($post_types_default as $post_type) {