<input class="button-primary" type="submit" value="Import CiviMember Members To Wordpress User List" onclick="window.location.href='<?php echo $sync_import_url; ?> '"/> </td> </tr> </table> </div> <?php require_once 'civi.php'; require_once ABSPATH . 'wp-content/plugins/civicrm/civicrm/CRM/Core/BAO/UFMatch.php'; if (isset($_GET['action'])) { $status_message = ''; if ($_GET['action'] == 'confirm') { $status_message = CrmSync::civi_member_sync(); } ?> <?php /* NEW FUNCTION: sync civicrm members into wordpress user list */ //function import_civicrm_members_to_wordpress() { if ($_GET['action'] == 'import') { $status_message = CrmSync::import_civi_members_to_wordpress(); } ?> <div class="updated below-h2"> <span><p> <?php echo $status_message; ?>