get_option_id(); $order_notification_option = get_option($order_notification_option_id); if( empty($order_notification_option) ) { // we check for setting in notifyapi-sendsms $sendsms_plugin_option_id = preg_replace("/notifysms_/", "moceansms_", $order_notification_option_id, 1); $sendsms_plugin_option = get_option($sendsms_plugin_option_id); if( !empty($sendsms_plugin_option) ) { update_option($order_notification_option_id, $sendsms_plugin_option); continue; } } } } }