function wpue_activate() { $wpue_config = wpue_getDefaultConfig(); $wpue_config->metadata = array(); if (get_option('wpue-config')) { delete_option('wpue-config'); } add_option('wpue-config', $wpue_config); $admin = get_role('administrator'); $admin->add_cap('manage-wp-users-exporter'); $admin->add_cap('use-wp-users-exporter'); $exporters = wpue_getExporters(); foreach ($exporters as $exporter) { eval("{$exporter}::activate();"); } }
?> )</em></label> <br/> <?php $first = false; } ?> <h4><?php _e('Order by', 'wp-users-exporter'); ?> :</strong></h4> <select name='order'> <?php $first = true; $defaultConfig = wpue_getDefaultConfig(); foreach ($defaultConfig->userdata as $udata => $dataname) { if ($udata === __ROLE__) { continue; } ?> <option value='<?php echo $udata; ?> ' <?php if (!isset($_POST['order']) && $first || isset($_POST['order']) && $_POST['order'] == $dataname) { echo 'checked="checked"'; } ?> /><?php echo $dataname;
<?php // prefixo que será usado nos slugs global $wpdb, $wp_roles; $wpue_options = wpue_getDefaultConfig(); $wpue_config = wpue_getConfig(); // buddypress edition if (wpue_isBP()) { $bp_fields = wpue_bp_getProfileFields(); } ?> <style> .wpue-field label{ width:auto; display: inline; vertical-align: auto;} </style> <div class="wrap"> <h2><?php _e('WP Users Exporter Settings', 'wp-users-exporter'); ?> </h2> <form method="post"> <input type="hidden" name='<?php echo WPUE_PREFIX; ?> action' value='save-config' /> <h3 class="title"><?php