public static function save_settings($site_ID)
 {
     $_POST['site_url'] = str_replace('/xmlrpc.php', '', $_POST['site_url']);
     update_post_meta($site_ID, 'syn_site_url', esc_url_raw($_POST['site_url']));
     update_post_meta($site_ID, 'syn_site_username', sanitize_text_field($_POST['site_username']));
     update_post_meta($site_ID, 'syn_site_password', push_syndicate_encrypt(sanitize_text_field($_POST['site_password'])));
     if (!filter_var($_POST['site_url'], FILTER_VALIDATE_URL)) {
         add_filter('redirect_post_location', create_function('$location', 'return add_query_arg("message", 301, $location);'));
         return false;
     }
     return true;
 }
 public static function save_settings($site_ID)
 {
     update_post_meta($site_ID, 'syn_site_token', push_syndicate_encrypt(sanitize_text_field($_POST['site_token'])));
     update_post_meta($site_ID, 'syn_site_id', sanitize_text_field($_POST['site_id']));
     update_post_meta($site_ID, 'syn_site_url', sanitize_text_field($_POST['site_url']));
     return true;
 }