Add update egd entries
This commit is contained in:
@@ -15,10 +15,14 @@ if (isset($_GET['deleted_field']))
|
||||
echo '<div class="notice notice-success"><p>Custom field deleted!</p></div>';
|
||||
if (isset($_GET['updated_entry']))
|
||||
echo '<div class="notice notice-success"><p>Entry updated!</p></div>';
|
||||
if (isset($_GET['egd_updated']))
|
||||
echo '<div class="notice notice-success"><p>' . esc_html($_GET['egd_updated']) . ' entries updated with EGD data!</p></div>';
|
||||
if (isset($_GET['error']) && $_GET['error'] == 'missing_required')
|
||||
echo '<div class="notice notice-error"><p>First Name and Last Name are required!</p></div>';
|
||||
if (isset($_GET['error']) && $_GET['error'] == 'missing_required_field')
|
||||
echo '<div class="notice notice-error"><p>A required custom field is missing!</p></div>';
|
||||
if (isset($_GET['error']) && $_GET['error'] == 'egd_update_failed')
|
||||
echo '<div class="notice notice-error"><p>Failed to update EGD data. Check error logs.</p></div>';
|
||||
?>
|
||||
|
||||
<div class="wrap">
|
||||
@@ -41,6 +45,7 @@ if (isset($_GET['error']) && $_GET['error'] == 'missing_required_field')
|
||||
action_button('go_form_export_pairgoth', 'Export to Pairgoth', 'Confrm Export', $selected_form_id);
|
||||
action_button('go_form_export_opengotha', 'Export to Opengoth', 'Confrm Export', $selected_form_id);
|
||||
action_button('go_form_export_mcmahon', 'Export to McMahon', 'Confrm Export', $selected_form_id);
|
||||
action_button('go_form_update_egd_data', 'Update EGD Data', 'Update rank and rating from EGD for all entries with EGD numbers?', $selected_form_id);
|
||||
|
||||
echo '</div>';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user